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 320452b commit daea7c0Copy full SHA for daea7c0
src/nwp_consumer/internal/entities/tensorstore.py
@@ -335,7 +335,7 @@ def _calc_null_percentage(data: np.typing.NDArray[np.float32]) -> float:
335
"to coordinate values in the dataset",
336
)
337
return 1.0
338
- return float(nulls.sum() / len(nulls))
+ return float(nulls.sum() / np.prod(nulls.shape))
339
340
if "latitude" in store_da.dims:
341
spatial_dims: list[str] = ["latitude", "longitude"]
0 commit comments