cf-xarray
cf-xarray copied to clipboard
an accessor for xarray objects that interprets CF attributes
This should use the `__getitem__` logic and return `None` if `__getitem__` files so that the two are consistent (as expected from dicts and other mappings)
Continuing from https://github.com/xarray-contrib/cf-xarray/issues/124#issuecomment-765725229 Creating "minimal" examples is going to be slightly annoying since we will mostly care about `.attrs` and `.encoding`. Maybe we should have a bug report template that...
to wrap `_DatasetPlotMethods`. This should be easy → follow what is done with `_CFPlotMethods`
See https://github.com/pyviz-topics/EarthSim/issues/326 and https://github.com/pyoceans/gridgeo/blob/master/gridgeo/ugrid.py and https://pyugrid.github.io/pyugrid/
It looks like when I pull out a DataArray from a Dataset using `cf_xarray` the coordinates are dropped (while `xarray` keeps them). Here is an example: ```python import xarray as...
xarray itself has a very helpful [Terminology page](http://xarray.pydata.org/en/stable/terminology.html) that gives definitions for the key objects/concepts in xarray. As that page notes, these differ somewhat from CF. Since `cf-xarray` further acts...
This will allow `fg.cf.map_dataarray(x="longitude", ...)` Adding `xr.plot.FacetGrid` to `_WRAPPED_CLASSES` and some tests should be enough (?)
@dcherian I haven't gotten to integrate cf-xarray into my workflow yet, but, looking ahead, could cf-xarray be a tool for enforcing certain dimension ordering for xarray DataArrays? I find that...
http://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#climatological-statistics This seems like a useful feature to have under the `ds.cf.clim` namespace at least for simple reductions like `cf.clim(time="D").mean()`.