issue_comments: 700670814
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/4470#issuecomment-700670814 | https://api.github.com/repos/pydata/xarray/issues/4470 | 700670814 | MDEyOklzc3VlQ29tbWVudDcwMDY3MDgxNA== | 1197350 | 2020-09-29T12:31:42Z | 2020-09-29T20:06:51Z | MEMBER | You can see an example of using xarray with structured curvilinear coordinates here: - http://xarray.pydata.org/en/stable/examples/multidimensional-coords.html - http://xarray.pydata.org/en/stable/examples/ROMS_ocean_model.html And with unstructured data here: - http://gallery.pangeo.io/repos/rsignell-usgs/esip-gallery/02_National_Water_Model.html - http://gallery.pangeo.io/repos/rsignell-usgs/esip-gallery/01_hurricane_ike_water_levels.html The key concept is that xarray supports both dimensions coordinates and non-dimension coordinates. The dimension coordinates must be 1D, but the non-dimension coordinates can have any dimensionality. For a regular lat-lon grid, a variable might have dimensions like this
This is exactly what netCDF does to encode these data types. Anything that can go into a netCDF file can be represented in Xarray. You just don't get the full functionality in terms of label-based selection. That will hopefully change as we implement more flexible indexing (see https://github.com/pydata/xarray/projects/1). Another limitation of xarray is that it has no explicit notion of "cell bounds," other than recognizing these as coordinates (see #2844). Our xgcm package works around this limitation in some simple ways. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
710357592 |