Fix projection handling for NWC GEO v2025 data#3367
Fix projection handling for NWC GEO v2025 data#3367pnuu wants to merge 8 commits intopytroll:mainfrom
Conversation
|
Oh, almost forgot: the code completion from GitHub Copilot helped with the first iteration of |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3367 +/- ##
==========================================
- Coverage 96.35% 96.32% -0.04%
==========================================
Files 466 466
Lines 59083 59119 +36
==========================================
+ Hits 56931 56945 +14
- Misses 2152 2174 +22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
strandgren
left a comment
There was a problem hiding this comment.
Thanks for fixing! I tested the code and it works as expected 🙂
See one minor comment/suggestion in-line. Also, any particular reason why you now decided to round the numbers to three digits?
|
|
Looks good to me now :) I leave it to you to decide whether we should wait for a reply from NWC-SAF regarding the consistency across missions before merging or not. Probably that could be dealt with in a new PR if needed. |
|
They actually replied "please create a ticket at NWC SAF website after login". I don't have an account there, and vote for merging. |
|
I have created the ticket on the nwcsaf login page now, but I agree that this PR can be merged independently of this. |
|
Got response from NWC-SAF now. My question: Their response: So a few takeaways relevant for this PR:
|
|
The version is given in global attributes in With In [7]: nc["ct"].attrs["grid_mapping"]
Out[7]: 'projection_definition'Same with In [15]: nc["ct"].grid_mapping
Out[15]: 'projection_definition'Also |
|
The version identifier with different versions of the data: So something like |
This PR fixes the projection handling of NWC SAF GEO v2025 data in
nwcsaf-georeader. Thea,bandhparameters of theproj_stringand the area extent are now scaled (de-scaled?) with the hard-coded value ofprojection_definition:perspective_point_height, which can't be accessed from the attributes given byxr.open_dataset(). The struct(?) can't be accessed withnetCDF4,h5netcdfnorh5pyeither (in a simple way in any case) with the use.@strandgren can you give this a go to see how well the geolocation actually matches?
AUTHORS.mdif not there already