Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, GMT!
I found that
gmt project -G<dist>
uses wrong interval when<dist>
appending angular unitd|m|e
. For example,$ gmt project -C125/33 -E146/46 -G1d -Q | head -n3 125 33 0 125.000007565 33.0000063736 0.001 125.00001513 33.0000127473 0.002
looks like there's a strange 1e-3 scale. I checked
project.c
, and I guess maybe we need to add anif
statement here, to check whether-G
use angular unit.gmt/src/project.c
Lines 847 to 848 in 640f1e6
So I imitate some lines for
-Z
,gmt/src/project.c
Lines 783 to 793 in 640f1e6
I add an
if
statement for-G
,After recompiling, I test it with same command, the result seems fine.
$ gmt project -C125/33 -E146/46 -G1d -Q | head -n3 125 33 0 125.848042113 33.705854159 111.195051975 126.710079013 34.4058180505 222.39010395