-
Notifications
You must be signed in to change notification settings - Fork 295
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
Changes to Eumetsat L2 BUFR reader #2603
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.
satpy/etc/readers/fci_l2_bufr.yaml
Outdated
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
satpy/etc/readers/fci_l2_bufr.yaml
Outdated
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
@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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2603 +/- ##
==========================================
+ Coverage 95.90% 95.97% +0.07%
==========================================
Files 366 366
Lines 53524 53804 +280
==========================================
+ Hits 51330 51639 +309
+ Misses 2194 2165 -29
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Pull Request Test Coverage Report for Build 9512734622Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
This one is now ready for review. In the end we decided to not specify a |
Pull Request Test Coverage Report for Build 9516424732Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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 for adding this reader! I would be in favor of writing °C
instead of \u00B0C
for readability, otherwise it looks good to me!
@@ -1081,7 +1081,7 @@ datasets: | |||
coordinates: | |||
- longitude | |||
- latitude | |||
units: "" | |||
units: "\u00B0C" |
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.
units: "\u00B0C" | |
units: "°C" |
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.
Updated as suggested
@@ -1094,7 +1094,7 @@ datasets: | |||
coordinates: | |||
- longitude | |||
- latitude | |||
units: "" | |||
units: "\u00B0C" |
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.
units: "\u00B0C" | |
units: "°C" |
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.
Updated as suggested
@@ -1107,7 +1107,7 @@ datasets: | |||
coordinates: | |||
- longitude | |||
- latitude | |||
units: "" | |||
units: "\u00B0C" |
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.
units: "\u00B0C" | |
units: "°C" |
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.
Updated as suggested
@@ -1159,7 +1159,7 @@ datasets: | |||
coordinates: | |||
- longitude | |||
- latitude | |||
units: "" | |||
units: "\u00B0C" |
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.
units: "\u00B0C" | |
units: "°C" |
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.
Updated as suggested
Pull Request Test Coverage Report for Build 10055342407Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
This PL carries the following feature changes: