Skip to content

Commit

Permalink
change decode_times to use_cftime
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Resnick committed Jul 9, 2021
1 parent 03616ec commit e342906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diagnostics/flow_dep_diag/ClimAnom_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#function to calculate climatology anomalies for eah variable
def climAnom(var_path, var_name):

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

0 comments on commit e342906

Please sign in to comment.