Skip to content

Commit

Permalink
correction: Aplly corrections asked pytroll#2998
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementLaplace committed Dec 5, 2024
1 parent a47690e commit 0821afb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion satpy/readers/li_base_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ def get_projection_config(self):
"""Retrieve the projection configuration details."""
# We retrieve the projection variable name directly from our swath settings:
proj_var = self.swath_coordinates["projection"]
logger.error(proj_var)
geos_proj = self.get_measured_variable(proj_var, fill_value=None)
# cast projection attributes to float/str:
major_axis = float(geos_proj.attrs["semi_major_axis"])
Expand Down
2 changes: 1 addition & 1 deletion satpy/readers/li_l2_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def get_array_on_fci_grid(self, data_array: xr.DataArray):
data_2d = da.map_blocks(_np_add_at_wrapper, data_2d, (rows, cols), data_array,
dtype=data_array.dtype,
chunks=(LI_GRID_SHAPE[0], LI_GRID_SHAPE[1]))
data_2d = da.where(data_2d > 0, data_2d, np.float32(np.nan)).astype(np.float32)
data_2d = da.where(data_2d > 0, data_2d, np.nan).astype(np.float32)
xarr = xr.DataArray(da.asarray(data_2d, CHUNK_SIZE), dims=("y", "x"))
xarr.attrs = attrs
return xarr
Expand Down

0 comments on commit 0821afb

Please sign in to comment.