Skip to content
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

HAR/TU WRF-Mercator #242

Merged
merged 2 commits into from
Jul 9, 2024
Merged

HAR/TU WRF-Mercator #242

merged 2 commits into from
Jul 9, 2024

Conversation

benatouba
Copy link
Contributor

Add support for WRF-Mercator projection in TU style products

@fmaussion
Copy link
Owner

fmaussion commented Jul 9, 2024

Thanks! Could you make a clean PR without the previous commit? Also this might need some form of testing - but we can think about this later

@benatouba benatouba force-pushed the HAR/TU branch 4 times, most recently from b62718f to 048c423 Compare July 9, 2024 08:43
salem/sio.py Outdated
pargs['lon_0'] = ds.PROJ_CENTRAL_LON
pargs['center_lon'] = ds.PROJ_CENTRAL_LON
dx = ds.GRID_DX or ds.DX
dy = ds.GRID_DY or ds.DY
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesnt look like a good idea because if GRID_DX is not available it will raise an error, not go to ds.DX

@fmaussion
Copy link
Owner

Did you rebase to latest master? I'm surprised the tests are still failing.

@benatouba benatouba force-pushed the HAR/TU branch 2 times, most recently from 251d982 to 70ca4c9 Compare July 9, 2024 09:37
@benatouba
Copy link
Contributor Author

Did the rebase now. Adding a fix for your remark next

Check if GRID_DX/GRID_DY are present in the attributes of files that have proj_envi_string.
GRID_DX/GRID_DY should be preferred over DX/DY in this case as they are
specifically defined in product generation at least for files generated
at TUB.

Fixes an issue where the test errors if GRID_DX/GRID_DY are not present.
@benatouba
Copy link
Contributor Author

As for testing, i can upload a small test file to the sample data repository

@fmaussion fmaussion merged commit 2e8eaf9 into fmaussion:master Jul 9, 2024
3 of 6 checks passed
@fmaussion
Copy link
Owner

Nah thanks, it's ok like this - I'm still puzzled as to why the tests fail, let's check on master

@benatouba benatouba deleted the HAR/TU branch July 9, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants