Closed liamtoney closed 3 years ago
Will GMT coast just accept the E argument with no other land/water colors set? The GMTInvalidError input was likely put in to prevent an error coming back from the GMT API.
gmt coast -EUS+gred -pdf map
works, so confirm it as a bug.
Sounds good. Looks like we need to just do a quick update to the error raising.
Less than 12 hours since v0.3.0 released and we're already coming up for changes in v0.3.1! 😂
Running gmt coast
without extra options gives the following error messages:
$ gmt coast -pdf map
coast [ERROR]: Must specify -R option
coast [ERROR]: Must specify at least one of -C, -G, -S, -I, -N, -Q and -W
It doesn't mention -E, so also a tiny upstream bug.
Reopen the issue because this is also an upstream bug (if I understand it correctly).
The fix is similar and easy. Just need to update these lines in GMT's pscoast.c
: https://github.com/GenericMappingTools/gmt/blob/19db042fc2f1bf09136029bd801ea73f0b6dd30d/src/pscoast.c#L606-L609
@willschlitzer Do you want to try it?
@seisman Just submitted the PR
Curious. I went see what I do in Julia and your command jut works (gives the map you show). But probably because under the hood I always add a -Da if option -D is not used. Though this option has no effect with DCW countries
julia> coast(region="US", projection="S232.7435/90/8i", dcw="US+gred", show=1, Vd=2)
"pscoast -EUS+gred -Vq -RUS -JS232.7435/90/8i -Baf -BWSen -Da -P -K > C:\\TMP\\GMTjl_tmp.ps"
Description of the problem
Using
fig.coast(dcw=...)
fails, asking for additional kwargs. I have to add another kwarg, likewater='white'
, to get things to plot. I believe thatdcw
alone should be enough.Full code that generated the error
Expected output
Full error message
System information
Please paste the output of
python -c "import pygmt; pygmt.show_versions()"
: