Skip to content

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.

3 participants