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

Trouble with installing GMT with Julia #722

Closed
LucasEskens opened this issue Oct 21, 2021 · 2 comments
Closed

Trouble with installing GMT with Julia #722

LucasEskens opened this issue Oct 21, 2021 · 2 comments

Comments

@LucasEskens
Copy link

Hello, I'm quite new to working with Julia. Currently I'm trying to GMT to work with Julia, however I have the idea that
the wrapper is not working for me properly. Using the command "using GMT" seems to work fine, however anything afterwards involving GMT isn't working, see the example below.

github error

Does anyone have an idea how I could solve this issue? I'm working on Windows, which I think influences the workflow.

@joa-quim
Copy link
Member

Hi, welcome to this new experience but picked a non-trivial case the definitively needs improvements.

The issue is that those @earth_relief files are a bit special in the sense that we don't give the entire name but let GMT guess the rest (and do the necessary mosaics when that is needed). The first error message says GMT_FILE_NOT_FOUND. So let's make it print ... a different error.

julia> G = gmtread("@earth_relief_01m", limits=[4,20,37,49]);
ERROR: Must select one input data type (grid, image, dataset, cmap or ps)

Now the problem it's due to the lack of file name extension that prevented guessing that the file is a grid. This is the part that I can hopeful and easily improve because I know all "@earth_relief_... are grids.

But it works if we help it saying the file is a grid

G = gmtread("@earth_relief_01m", limits=[4,20,37,49], grid=true);
# Create a low res image to make it lighter to load at pass size limits
imshow(G, shade=true, coast=true, projection=:guess, cmap=:topo)

GMTjl_tmp

@joa-quim
Copy link
Member

I'm working on Windows, which I think influences the workflow.

Yes it does, it makes it work better 😃

@joa-quim joa-quim closed this as completed Dec 2, 2021
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

No branches or pull requests

2 participants