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

my own data to GMT #465

Closed
lazarusA opened this issue Oct 15, 2020 · 3 comments
Closed

my own data to GMT #465

lazarusA opened this issue Oct 15, 2020 · 3 comments

Comments

@lazarusA
Copy link

Hello,
I have being playing a little bit with all the examples in the library. They work nicely. Thanks for the effort. However, is there an easy way to transform my own data into the GRID type in order to use it with gmt ?
Suppose I have 3 arrays.

> longitude [1440-element Array{Float64,1}]
> latitude 1D array [720-element Array{Float64,1}]
> temperature 2D array [1440×720 Array{Float64,2}]

how do I pass this data to grdimage for instance?

@joa-quim
Copy link
Member

Have a look at mat2grid. e.g.

? mat2grid

@lazarusA
Copy link
Author

nice! this one works!... you have a lot of good functions, unfortunately one needs to go to the source code to look for them. Thanks.

@joa-quim
Copy link
Member

joa-quim commented Oct 15, 2020

Yes, I know. There is lots of work needed in the documentation front. BTW, you may have found also mat2img and mat2ds.

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