diff --git a/doc/source/config.rst b/doc/source/config.rst index 9babc1abbf..1cbbbec2ed 100644 --- a/doc/source/config.rst +++ b/doc/source/config.rst @@ -272,7 +272,7 @@ If ``clip_negative_radiances=False``, pixels with negative radiances will have Clipping of negative radiances is currently implemented for the following readers: -* ``abi_l1b``, ``ami_l1b`` +* ``abi_l1b``, ``ami_l1b``, ``fci_l1c_nc`` Temporary Directory diff --git a/satpy/readers/fci_l1c_nc.py b/satpy/readers/fci_l1c_nc.py index caad045f90..c24c9b4849 100644 --- a/satpy/readers/fci_l1c_nc.py +++ b/satpy/readers/fci_l1c_nc.py @@ -685,7 +685,7 @@ def calibrate_counts_to_rad(self, data, key): def _clipneg(data): """Clip counts to avoid negative radiances.""" lo = -data.attrs.get("add_offset", 0) // data.attrs.get("scale_factor", 1) + 1 - return data.where(data>=lo, lo) + return data.where((~data.notnull())|(data>=lo), lo) def calibrate_rad_to_bt(self, radiance, key): """IR channel calibration."""