cosima-cookbook
cosima-cookbook copied to clipboard
Framework for indexing and querying ocean-sea ice model output.
`xarray` v0.16.0 includes a feature `.chunk(chunks='auto')` (see [xarray docs](http://xarray.pydata.org/en/stable/generated/xarray.Dataset.chunk.html)) I'm wondering whether it would be useful if automatic chunking is applied to the `getvar()`'s output before returned to user. @angus-g,...
This is a bit of a follow-up, and collection of ideas after our meeting last week regarding `cc.querying.getvar`. In its current state, getvar is responsible for a lot of things:...
It would be useful to integrate xgcm functionality in cosima-cookbook. Perhaps with a flag `use_xgcm=True`? This will take away cumbersome calculations that involve quantities on different parts of the B-grid....
Changing the `xlim` from a time series plotted using `cc` is not trivial at all. Have a look at this: https://gist.github.com/navidcy/5375e98d4ac93185cb32c8edb76db60b Could we implement something in `cc` to simplify the...
It would be great to have a command line interface for generating/updating CC databases Querying would be nice too! List all experiments, that sort of thing. ping https://github.com/COSIMA/cosima-cookbook/pull/130
Looks like this could be very handy http://regionmask.readthedocs.io/en/stable/index.html
The variables don't have the unmasked 2D lat-lon coordinates so after we load a variable ```python var = cosima_cookbook.querying.getvar(experiment, variable, session, frequency='1 monthly', n=-1) ``` we need to do something...
I've been getting these for a while. I think we shouldn't ignore these. I managed to pin it down to the warnings appearing _only_ when a dask client is present....
This PR updates the instructions and removes all references to deprecated VDI system. Closes #272 Closes #328
When I run : ``` cc.querying.getvar( '1deg_jra55_iaf_omip2_cycle6', variable='sea_level', session=session, frequency='1 monthly', start_time='2000-01', end_time='2001-12', chunks='auto' ) ``` I get this error: ``` File /g/data/hh5/public/apps/miniconda3/envs/analysis3-23.07/lib/python3.10/site-packages/cosima_cookbook/querying.py:385, in getvar(expt, variable, session, ncfile, start_time, end_time,...