We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d78cb commit 77cc402Copy full SHA for 77cc402
README.rst
@@ -56,8 +56,8 @@ A lightweight convenience wrapper for using CF attributes on xarray objects. Rig
56
57
ds.air.attrs["cell_measures"] = "area: cell_area"
58
ds.coords["cell_area"] = (
59
- xr.DataArray(np.cos(ds.cf["latitude"] * np.pi / 180))
60
- * xr.ones_like(ds.cf["longitude"])
+ np.cos(ds.air.cf["latitude"] * np.pi / 180)
+ * xr.ones_like(ds.air.cf["longitude"])
61
* 105e3
62
* 110e3
63
)
0 commit comments