New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename fci_l1c_fdhsi to fci_l1c_nc #1684
Comments
I support the renaming! Regarding the Warning vs Error: We might need this in the future again, so how about having an extra |
the first prototype of the reader was created before trying to streamline and/or rationalise the names. so, i also support the renaming! |
The first prototype of this reader was called I am in doubt about the name change. The current name is consistent with the naming pattern |
@mraspaud I like the idea of the @gerritholl In your scenario |
yes, |
The |
Feature Request
Is your feature request related to a problem? Please describe.
The current FCI L1c reader is called
fci_l1c_fdhsi
, wherefdhsi
indicates the imaging mode (Full Disc High Spectral resolution Imagery). The counterpart offdhsi
is thehrfi
imaging mode (High spatial Resolution Fast Imagery). HRFI images will be distributed in separate NetCDF4 files, that however have exactly the same filetype and structure as FDHSI files. The channels inside the HRFI, and therefore the Satpy datasets, will have different names (e.g.vis_06_hr
in HRFI instead ofvis_06
in FDHSI).Keeping the current
fci_l1c_fdhsi
reader name implies that in future, when the first (test) data for HRFI will be available, we will have to implement anfci_l1c_hrfi
reader.Since the filetype and structure is essentially identical, there is however no reason to have two readers defined.
Describe the solution you'd like
Rename the
fci_l1c_fdhsi
tofci_l1c_nc
.With this
instrument_level_format
_hr
datasets to the HRFI files, and, if necessary, have different handling in the filehandlers.This PR comes a little late, but fortunately not too late, as released test data has not spread too much yet, and limited users are already using Satpy for it.
However, there are already users/software that have implemented workflows using the old reader name, and some documentation.
I would therefore propose to rename the reader, but find a solution to keep the old name working for a while.
The best solution in my opinion would be to use the
OLD_READERS
mechanism inconfigs_for_reader
satpy/satpy/readers/__init__.py
Lines 260 to 268 in 88938ab
in the current implementation, however, a hard ValueError is raised. To make the transition smoother, I would propose to go back to a Warning instead, at least for a while. This means basically undoing what @djhoese did in #597. Note that
OLD_READERS
is currently empty, so returning to a Warning would not affect any other workflow.Another, less elegant, solution would be to keep the old yaml file around, pointing to the renamed FileHandler.
Please let me know your thoughts, if you agree with my preferred solution or if I'm missing something.
FYI @gerritholl @mraspaud @sjoro
The text was updated successfully, but these errors were encountered: