WMO Instruments Part 2.2: File Handlers#3
Conversation
|
Wow, this is a lot of work. Nice job. I have not looked at the code and only your description so far.
|
|
Ok: normalize == WMO, serialize == satpy-name. Can we use this wording from now on? I think it makes sense for |
Haha I was thinking Or how would you call the latter? |
Agreed
I think it would be simpler if they were serialized as well |
But then we have to have a serialized->WMO conversion which is not obvious or consistent or even possible, right?
But then what do you call the Edit: What are those 2 cases? I thought there was satpy internal usage and WMO/human usage. So |
Given the serialized name, the WMO name could be looked up in a dictionary INTERNAL_TO_WMO: dict[str, str] = {
wmo_to_internal(instrument): str(instrument)
for instrument in OSCAR
}where
Both are internal, the first one is single instrument, the second one is for multiple instruments
Good question 😁 denormalize? Maybe the method names should be more self describing? |
This reverts commit 6fb27d5.
|
As mentioned on slack, maybe you're write and using internal versus wmo is better than normalize/denormalize/serialize. The internal to wmo dictionary makes sense although I hope there aren't any collisions (multiple WMO names that map to the same internal name). Or WMO names that aren't unique enough to distinguish themselves for our internal purposes. I think AGRI was one of those cases where AGRI on FY-4A is a completely different instrument from AGRI on FY-4B. Edit: Yeah OSCAR considers them the same entity: https://space.oscar.wmo.int/instruments/view/agri |
|
From what I've seen OSCAR takes that into account: "AGRI", "AGRI (FY-4C)", "IMAGER (GOES 8-11)", "IMAGER (INSAT)" etc |
|
WMO or OSCAR? Where do you see that naming/usage? |
|
When I type "AGRI" in the OSCAR search bar I get two suggestions. But you're right, they don't distinguish between FY-4A/B |
Coverage Report for CI Build 26290847897Coverage increased (+0.01%) to 96.407%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions431 previously-covered lines in 47 files lost coverage.
Coverage Stats
💛 - Coveralls |
Update file handlers to provide WMO instrument names. To be merged into pytroll#3390. This is the biggest PR of the series.
Summary
sensordataset attribute with WMO-compliantinstrumentsin file handlers.sensors: [mysensor]->instruments: [mysensor]in reader YAML filessensorsandinstruments, with a deprecation warning forsensorssatpy_cf_ncreader to support bothinstrumentsandsensor, with a deprecation warning forsensor.Breaking Changes
Removing the
sensorattribute is currently backwards incompatible. In one of the follow-up PRs I will add a config switch for getting the legacysensorattribute back. If enabled,scene.__getitem__would populatesensorwith the internal instrument name.Notes
{"SeaWiFS", "MERIS", "MODIS", "VIIRS"}instead ofmerged. Source: PML documentationIMAGER (GOES 12-15)instead ofgoes_imager. The source attribute is justgoes, so there's no way to distinguish between 8-11 and 12-15.sensorproperty but never use it. I still changed those to WMO names.sensorproperty that is not an instrument such asmimic. I didn't change those.AUTHORS.mdif not there already