era5 data cf_var
Closed this issue · 1 comments
ngben commented
Modify code on lines 96:102 to include ERA5 variables (tp, mx2t, mn2t, 2t for pr, tasmax, tasmin, tas respectively)
if variable in ['pr', 'precip', 'mtpr', 'tp']:
cf_var = 'pr'
elif variable in ['tasmax', 'tmax', 'mx2t']:
cf_var = 'tasmax'
elif variable in ['tasmin', 'tmin', 'mn2t']:
cf_var = 'tasmin'
elif variable in ['tas', 't2m', '2t']:
if time_agg == 'max':
cf_var = 'tasmax'
elif time_agg == 'min':
cf_var = 'tasmin'
else:
cf_var = 'tas'```
DamienIrving commented