gmt icon indicating copy to clipboard operation
gmt copied to clipboard

grdcontour -Ac1,c2,c3 does not annotate any contour

Open joa-quim opened this issue 4 years ago • 15 comments

No annotations at all

gmt grdcontour peaks.grd -JX10 -A-2,0,2,5 -Ba -png lixo

lixo

https://github.com/GenericMappingTools/gmt/files/4957187/peaks.grd.zip

joa-quim avatar Jul 26 '20 00:07 joa-quim

Will have a look until we loose power... This looks suspicious:

grdcontour [INFORMATION]: Auto-determined contour interval = 1 and annotation interval = 2

PaulWessel avatar Jul 26 '20 23:07 PaulWessel

I see, it gets caught in this stupid test:

if (opt->arg[0] == 'n' || opt->arg[0] == '-') /* -A- is deprecated */

So it sees -A-. I can fix that.

PaulWessel avatar Jul 26 '20 23:07 PaulWessel

Should had tested this further. It now annotates but does not plot non-annotated contours

gmt grdcontour peaks.grd -JX10 -C1 -A-2,0,2,5 -Ba -png lixo

lixo

joa-quim avatar Jul 27 '20 11:07 joa-quim

The parsing of -C -A and all the possibly combinations is really messy, and the -Alist triggers the creation of lists for both -A and -C, even though -C does not have one. I think we have

-Cinterval -Cfile -Clist, including a single contour -Cval, -Ccpt

and the same for -A. A -Ccpt and -Cfile invalidates all others, i.e., you cannot specify a separate -A scheme if tnose two options are used. Otherwise, you can mix -A -C. I will see if I can make a better separation for all this stuff.

PaulWessel avatar Jul 27 '20 17:07 PaulWessel

Also have backwards compatible shits to deal with -C+contour etc. Your example was never something that was implemented.

PaulWessel avatar Jul 27 '20 17:07 PaulWessel

And because the hurrican did no damage at all but they still decided to shut down the University for Monday, no staff will be in fixing the gmtserver until tomorrow...

PaulWessel avatar Jul 27 '20 17:07 PaulWessel

And what about the European site? It's working but from what I remember Dongdong found that something in the address aliasing was not.

joa-quim avatar Jul 27 '20 17:07 joa-quim

Yes, the original Europe URL works but the alias doesn't.

seisman avatar Jul 27 '20 19:07 seisman

This is what we have: Untitled

I notice oceania has a final slash while europe does not? COuld that be it?

PaulWessel avatar Jul 27 '20 19:07 PaulWessel

Maybe. And the https also work, although it gives one of those scariest warning because apparently the certificate is not signed.

joa-quim avatar Jul 27 '20 20:07 joa-quim

I have added the slash. We probably want to avoid those warnings so stick with http until you can have it signed (IT people?).

PaulWessel avatar Jul 27 '20 20:07 PaulWessel

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

stale[bot] avatar Nov 01 '20 07:11 stale[bot]

gmt grdcontour peaks.grd -JX10 -C1 -A-2,0,2,5 -Ba -png lixo

Still doesn't work correctly.

joa-quim avatar Nov 01 '20 11:11 joa-quim

Hey, at least we got those annotated contours up. Will see what can be done.

PaulWessel avatar Nov 01 '20 21:11 PaulWessel

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

stale[bot] avatar Feb 02 '21 05:02 stale[bot]