-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @knlowman, For both errors, I think one issue is that you didn't expect that For the second error, try doing : ensembles.ensemble_mean_std_max_min(ctrl_ens[['temp']]) Here I am using xarray's feature of selecting a list of (data) variables, which returns a Dataset with only that (data) variable. Keeping all relevant coordinates and attributes. And the first error. If you are indeed expecting stats on dates, then the problematic stat is |
Beta Was this translation helpful? Give feedback.
Hi @knlowman,
For both errors, I think one issue is that you didn't expect that
ensemble_mean_std_max_min
takes ONLY Datasets as input. We don't have a real reason for this, the function could easily be made to acceptDataArray
as well (a good first contribution maybe ;) )?For the second error, try doing :
Here I am using xarray's feature of selecting a list of (data) variables, which returns a Dataset with only that (data) variable. Keeping all relevant coordinates and attributes.
And the first error.
dtype('<M8[ns]')
means that one of the data variables in your dataset is made of datetimes. Are you expecting of taking the mean/std…