Skip to content

Commit e342906

Browse files
author
Drew Resnick
committed
change decode_times to use_cftime
1 parent 03616ec commit e342906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diagnostics/flow_dep_diag/ClimAnom_func.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#function to calculate climatology anomalies for eah variable
1111
def climAnom(var_path, var_name):
1212

13-
ds = xr.open_dataset(var_path, decode_times = True)
13+
ds = xr.open_dataset(var_path, use_cftime = True)
1414
ds[time_var] = ds.indexes[time_var].to_datetimeindex() #convert time to datetime so we can use groupby functionality
1515
# Drop 1 dimensional coordinates
1616
ds = ds.squeeze()

0 commit comments

Comments
 (0)