lesommer / oocgcm

oocgcm is a python library for the analysis of large gridded geophysical dataset.
http://oocgcm.rtfd.io
Apache License 2.0
39 stars 11 forks source link

What tools for facilitating the creation of xarrays from NEMO output files? #2

Open lesommer opened 8 years ago

lesommer commented 8 years ago

we could think of using something similar to :
mpas xarray wrapper

lesommer commented 8 years ago

another question : naming convention for netcdf files after computation, especially for multifiles.

lesommer commented 8 years ago

we might need to test the netcdf format of the file, see this xarray issue

lesommer commented 8 years ago

Naming conventions for output netcdf files are probably out of the scope of oocgcm. This is probably more a matter for nemo command line diagnostic tools based on oocgcm. oocgcm should a priori only provide use case examples using xarray save_mfdataset.

Example (copied from save_mfdataset docstring):

>>> years, datasets = zip(*ds.groupby('time.year'))
>>> paths = ['%s.nc' % y for y in years]
>>> xr.save_mfdataset(datasets, paths)