cf-xarray icon indicating copy to clipboard operation
cf-xarray copied to clipboard

an accessor for xarray objects that interprets CF attributes

Results 93 cf-xarray issues
Sort by recently updated
recently updated
newest added

Should account for different variables having different area metrics. xref #31

@dcherian just made me aware of this package and it looks super cool (have only skimmed the exmpamples so far). I noticed in the last example that you are recreating...

It'd be nice to have `ds.cf.set_aux_coords()` that would set auxiliary variables such as those named in `cell_measures`, `coordinates` and `bounds` (possibly more?) as xarray coordinate variables so that they are...

From https://github.com/pangeo-data/pangeo/issues/771 > Another useful place for a simple helper. Something like `ds.cf.ancillary_variables(varname)` could return an iterable of linked ancillary variables in the dataset.

[Workflow Run URL](https://github.com/xarray-contrib/cf-xarray/actions/runs/3305512630) Python 3.10 Test Summary ``` cf_xarray/tests/test_accessor.py::test_add_bounds[time2]: assert 139791139769040 == 139791146878224 + where 139791139769040 = id(2) + and 139791146878224 = id(2) cf_xarray/tests/test_accessor.py::test_add_bounds[lat]: assert 139791140885264 == 139791146878224 + where...

CI

Fixes #71! I went through `xgcm`'s code (using 0.6.1) and realized that the proposed solution for estimating 2D bounds was indeed quite simple! And that we already had the functions...

Hey there, when using `guess_coord_axis` with `lat`/`lon` coords, the axis attribute is not added. The CF-Conventions states: > Optionally, the latitude type may be indicated additionally by providing the standard_name...

Similar to [how-should-i-cite-xarray](https://docs.xarray.dev/en/stable/getting-started-guide/faq.html#how-should-i-cite-xarray), it would be nice to add into the FAQ the way to cite cf-xarray.

Would something like this be in scope for cf-xarray? It would need to be fairly loosely defined, but maybe a minimum would be that a Dataset would have axes and...