-
Notifications
You must be signed in to change notification settings - Fork 283
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
Changes to Eumetsat L2 BUFR reader #2603
base: main
Are you sure you want to change the base?
Conversation
…eader) and modify seviri_l2_bufr.yaml accordingly.
… script accordingly.
…nstead of MET08-11).
…nd adapt code to handle all variables being returned as arrays
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, see comments in-line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see some more comments in-line.
latitude: | ||
name: latitude | ||
key: '#1#latitude' | ||
resolution: [32000] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add resolution of AMV product
longitude: | ||
name: longitude | ||
key: '#1#longitude' | ||
resolution: [32000] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add resolution of AMV product
Harmonize key order for AMV Fix single quote style complains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @samain-eum, we're getting close now :) Some more comments in-line, There are also a few minor open comments from the last review, see here: #2603 (review) - only the ones related to renaming SEVIRI
--> EUMETSAT
, the rest should be fixed, or tracked otherwise.
I also noticed that the units of the SEVIRI GII datasets are not set correctly, could you maybe align this with the latest in the fci_l2_nc reader? i.e.
ki: deg Celcius
ko: deg Celcius
li: deg Celcius
mb: deg Celcius
lpw1: kg/m2 (mm is also correct, but kg/m2 is in line with fci_l2_nc and also seems more inline with CF)
lpw2: kg/m2
lpw3: kg/m2
tpw1: kg/m2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more comments after testing the code locally.
satpy/etc/readers/fci_l2_bufr.yaml
Outdated
short_name: FCI l2 BUFR | ||
long_name: MTGi Level 2 products in BUFR format | ||
description: FCI L2 BUFR Product Reader | ||
status: Alpha, AMV BUFR products not supported yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set to simply Alpha
since AMV products are supported
satpy/etc/readers/fci_l2_bufr.yaml
Outdated
latitude: | ||
name: latitude | ||
key: '#1#latitude' | ||
resolution: [32000, none] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
none
is not allowed here, breaks for example the Scene.available_dataset_names()
helper function. I think it should be enough to simply remove it and only keep [32000]
. Confirm with Youva that the AMV reading still works.
satpy/etc/readers/fci_l2_bufr.yaml
Outdated
longitude: | ||
name: longitude | ||
key: '#1#longitude' | ||
resolution: [32000, none] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
none
is not allowed here, breaks for example the Scene.available_dataset_names()
helper function. I think it should be enough to simply remove it and only keep [32000]
. Confirm with Youva that the AMV reading still works.
@mraspaud : We have a question on what do for the resolution of wind products
Do you have any preference of advice? |
To add to this: what is actually the idea of having a list of resolutions for a datasets If you know the logic behind this @mraspaud or could point to the relevant code that would help us understand better what the best approach is for our use case. |
@strandgren Actually my idea of separate different lat/lon blocs for resolution-less products doesn't work. It seems satpy overloads the dataset info with the last bloc found in the yaml file and the same name. So it breaks when trying to load lat/lon for ASR for example. So I think I will instead use a dummy value of 0 in the yaml file, and replace it by 'none' when creating the attributes. As for your question above, the resolution is currently linked to the file pattern itself, so we can't manage datasets with different resolutions within one file. |
That's a tough question! But just for curiosity, why doesn't resolution make sense for wind data? Is it like a continuous field? or is it motion vector derived from pixels at a certain resolution? (in which case maybe the original pixel resolution makes a little sense?) Otherwise, you can always define custom data identification keys for your reader, like in here: https://github.com/pytroll/satpy/blob/main/satpy/etc/readers/sgli_l1b.yaml#L13-L31 |
Hi @mraspaud This is how the definitions look like now for AMV:
|
…_size attributes of returned dataset array to None
This PL carries the following feature changes: