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

grid to numpy array #657

Closed
uliw opened this issue Oct 19, 2020 · 1 comment
Closed

grid to numpy array #657

uliw opened this issue Oct 19, 2020 · 1 comment

Comments

@uliw
Copy link

uliw commented Oct 19, 2020

Description of the desired feature
This may be already there, but I could not find it in the docs. I would like to access gridded data as numpy array. At present, I do the following:

grid = gmt.datasets.load_earth_relief(resolution="05m",region="g")
df = grid.to_pandas()
height = df.to_numpy()

Thanks for any pointers

Are you willing to help implement and maintain this feature? No

@uliw
Copy link
Author

uliw commented Oct 19, 2020

just saw that grid actually uses numpy internally

@uliw uliw closed this as completed Oct 19, 2020
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

1 participant