Describe the bug
The AMV datasets returned by the fci_l2_nc reader contain the attribute unit, rather than units, which is the CF naming convention. This is an inherited issues since the FCI L2 NetCDF files use the unit attribute, which is then read and used by reader.
Describe the bug The AMV datasets returned by the
fci_l2_nc
reader contain the attributeunit
, rather thanunits
, which is the CF naming convention. This is an inherited issues since the FCI L2 NetCDF files use theunit
attribute, which is then read and used by reader.The reader contains a common method
FciL2CommonFunctions._set_attributes
(https://github.com/pytroll/satpy/blob/main/satpy/readers/fci_l2_nc.py#L84) which addresses this issue. However, this method is not used by theFciL2NCAMVFileHandler
.Furthermore, the
FciL2NCAMVFileHandler
contains a copy of the_get_global_attributes
, which is already available inFciL2CommonFunctions
.Proposed solution Refactor
FciL2CommonFunctions._set_attributes
to something like this:and then in FciL2NCAMVFileHandler delete
_get_global_attributes
and modify these linesto
Furthermore, modify this line in
FciL2NCSegmentFileHandler.get_dataset
to