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

grdcontour -N is still not fixed #90

Closed
joa-quim opened this issue Sep 23, 2018 · 2 comments · Fixed by #92
Closed

grdcontour -N is still not fixed #90

joa-quim opened this issue Sep 23, 2018 · 2 comments · Fixed by #92

Comments

@joa-quim
Copy link
Member

If one set the cpt via -N

grdcontour lixo.grd -Nlixo.cpt -P -JX10 > lixo.ps
grdview [ERROR]: Syntax error: Must specify color palette table
unknown [ERROR]: Failed to call grdview

and from external interfaces neither -C or -N work

julia> grdcontour(G, color=cpt, show=1, N=true,  Vd=1)
        grdcontour  -JX12c/0 -C -N -P -K > C:\tmp\GMTjl_tmp.ps
GMT [ERROR]: CPT api_colors2cpt_16176.cpt has no z-slices!

apparently because in this case at the call

if ((P = GMT_Read_Data (API, GMT_IS_PALETTE, GMT_IS_FILE, GMT_IS_NONE, GMT_READ_NORMAL, NULL, cptfile, NULL)) == NULL) {

cptfile is an empty string.

@joa-quim
Copy link
Member Author

Closed this too soon. The fix fixes the command line side but external calls still fail due to the reason exposed.

@PaulWessel
Copy link
Member

OK, later hopefully

obaney pushed a commit to obaney/gmt that referenced this issue Aug 18, 2021
)

Creates a virtual file with a GMT Dataset derived from a matrix. Cleans
the virtual file upon exit. Makes sure that the matrix is C contiguous
in memory before passing it along.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants