-
Notifications
You must be signed in to change notification settings - Fork 396
Region for 3s tiles fails if not multiple of 3s #4124
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
Conversation
See form post for details. This PR simply adds a failing test.
|
Note it works without -I but fails with -I. |
|
This one? #3206 |
|
Thanks yes. OK, so this current case does not involve 15s so perhaps takes a different path. I will debug. |
If an intensity grid is given, and a remote earth_relief grid is given, then when the intensity grid is read in and we specify the subregion wesn, make sure this region matches the possibly adjusted tile_wesn due to rounding in gmt_remote.c See #4124 for background.
* Make sure intensity subset matches tiled region if given If an intensity grid is given, and a remote earth_relief grid is given, then when the intensity grid is read in and we specify the subregion wesn, make sure this region matches the possibly adjusted tile_wesn due to rounding in gmt_remote.c See #4124 for background. * Update grdimage.c * Update grdimage.c Actually, similar problem cased the issue to begin with.
* Make sure intensity subset matches tiled region if given If an intensity grid is given, and a remote earth_relief grid is given, then when the intensity grid is read in and we specify the subregion wesn, make sure this region matches the possibly adjusted tile_wesn due to rounding in gmt_remote.c See #4124 for background. * Update grdimage.c * Update grdimage.c Actually, similar problem cased the issue to begin with.
* Make sure intensity subset matches tiled region if given If an intensity grid is given, and a remote earth_relief grid is given, then when the intensity grid is read in and we specify the subregion wesn, make sure this region matches the possibly adjusted tile_wesn due to rounding in gmt_remote.c See #4124 for background. * Update grdimage.c * Update grdimage.c Actually, similar problem cased the issue to begin with. Co-authored-by: Paul Wessel <[email protected]>
|
Fixed by #4130. |
|
But do we want to add the test for it? |
|
Ooops, yes, this PR has the test script and now the correct PS. |
|
One concern about this PR is, this PR uses earth_relief_03. It means we have to cache the earth_relief_03s grid (at least some tiles). |
|
Might we have a flag to prevent a test from being run in the CI, only locally? |
|
Likewise, perhaps remove backport? |
|
Before adding another single flag, perhaps thing about deeper about test partitioning. Ways to consider subsets of tests: Might be others. Hopefully the flag (maybe this is a bitflag) can help the CI know what to pre-download? A key issue for us is often the time it takes. I made a histogram of run times for the tests once. It is long-tailed, with mostly quick tests and a few slow ones. A linear scheme does not seem sensible, maybe a flag 1, 2 , 3 that maps to log10 of some scaled time? |
It's already supported. Currently, tests have inconsistent names (e.g., |
test/grdimage/rounding.sh
Outdated
| # Failing script while fixing https://forum.generic-mapping-tools.org/t/error-pygmt-gmtcliberror-module-grdimage-failed-with-status-code-78/829 | ||
| # Now reported as issue ### |
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.
Please fix/improve the comments.
|
For this test, I think we can run |
|
Like this? |
test/grdimage/rounding.sh
Outdated
| # Ensure the two tiles are downloaded first: | ||
| gmt grdcut -R3:57/4:18/44:00/44:15 @earth_relief_03s -G/dev/null |
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.
No. I didn't mean this. It should be done in the CI script:
gmt/ci/azure-pipelines-mac.yml
Lines 80 to 90 in 66f5bdc
| # Download remote files, if not already cached | |
| - bash: | | |
| set -x -e | |
| # list of datasets used in tests | |
| data="@earth_relief_01d \ | |
| @earth_relief_30m \ | |
| @earth_relief_20m \ | |
| @earth_relief_15m \ | |
| @earth_relief_10m @earth_relief_10m_g \ | |
| @earth_relief_06m \ | |
| @earth_relief_05m @earth_relief_05m_g \ |
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.
OK, I agree. Should I or you move that code to the .yml file then?
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.
I'll do that.
See form post for details. This PR simply adds a failing test.