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

Make checking for registrations more robust #6160

Merged
merged 1 commit into from
Dec 27, 2021
Merged

Conversation

PaulWessel
Copy link
Member

Related to new datasets. The gmt_set_unspecified_remote_registration function, whose job it is to determine if a pixel or gridline registration version was specifically requested in a remote file name, was written before there was @earth_geoid and hence the lame check for _g or _p easily found _g(eoid) and returned prematurely.
This PR adds the harder work of advancing past the leading dataset name and then look for _g or _p in what remains.

In the process I learned I had a typo in the test gmt_data_server.txt file where the earth_relief_01d_g.grd had a missing / in front of server which meant the apimat2grd.sh test failed. Just delete your test/server/gmt_data_server.txt to get the updated file.

Tests pass.

THe gmt_set_unspecified_remote_registration function, whose job it is to determine of the pixel or gridline registration was specifically requested in a remote file name, was written before there was @earth_geoid and hence the lame check for _g or _p found _g(eoid) and returned prematurely.
This PR adds the harder work of advancing past the leading dataset name and then look for _g or _p.
In the process I learned I had a typo in the test gmt_data_server.txt where the earth_relief_01d_g.grd had a missing / in front of server.  Just delete your test/server/gmt_data_server.txt to get the fixed file.

Tests pass.
@PaulWessel PaulWessel added the bug Something isn't working label Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants