Open oliviermarti opened 3 years ago
Hi Olivier
Could you give a try to :
def cXR(obj) :
ds = xarray.open_dataset(cfile(obj))
return ds[obj.variable]
which could be added in a later release ?
And, actually, atop of working with a ds, it should work for more elaborated CliMAF objects
Works fine with a simple object. Thanks !
The method cMA allows to get a numpy array from a ds. I would really appreciate to have a cXR function, which would produced an xarray object.
Thanks
Olivier