You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running land-sea-aware regridding there is an issue where the input grid-extent is smaller than the target grid-extent ( there are output points where no mapping to input points)
input_landmask.nc and input.nc have grid extents smaller than that of output_grid.nc
The error:
improver/utilities/spatial.py", line 458, in maximum_within_vicinity
unmasked_cube_data[cube.data.mask] = -np.inf
OverflowError: cannot convert float infinity to integer
The -np.inf does not convert to an integer, replacing this with a regular number (eg. netcdf fill-value for integers) would solve the issue.
Acceptance criteria:
Agreed approach to handling initialisation of unmasked_cube_data
Code changes so CLI runs successfully independent of size of relevant extents of initial and target grids
All acceptance and unit tests pass with code-changes implemented.
The text was updated successfully, but these errors were encountered:
When running land-sea-aware regridding there is an issue where the input grid-extent is smaller than the target grid-extent ( there are output points where no mapping to input points)
Command run:
input_landmask.nc and input.nc have grid extents smaller than that of output_grid.nc
The error:
The
-np.inf
does not convert to an integer, replacing this with a regular number (eg. netcdf fill-value for integers) would solve the issue.Acceptance criteria:
The text was updated successfully, but these errors were encountered: