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 4d0732b commit 23a2b40Copy full SHA for 23a2b40
odc/stats/plugins/_base.py
@@ -53,7 +53,7 @@ def native_transform(self, xx: xr.Dataset) -> xr.Dataset:
53
xx[var].attrs.get("nodata") is None
54
and np.dtype(xx[var].dtype).kind == "f"
55
):
56
- xx[var].attrs["nodata"] = np.nan
+ xx[var].attrs["nodata"] = xx[var].dtype.type(None)
57
return xx
58
59
def fuser(self, xx: xr.Dataset) -> xr.Dataset:
0 commit comments