We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03616ec commit e342906Copy full SHA for e342906
diagnostics/flow_dep_diag/ClimAnom_func.py
@@ -10,7 +10,7 @@
10
#function to calculate climatology anomalies for eah variable
11
def climAnom(var_path, var_name):
12
13
- ds = xr.open_dataset(var_path, decode_times = True)
+ ds = xr.open_dataset(var_path, use_cftime = True)
14
ds[time_var] = ds.indexes[time_var].to_datetimeindex() #convert time to datetime so we can use groupby functionality
15
# Drop 1 dimensional coordinates
16
ds = ds.squeeze()
0 commit comments