-
Notifications
You must be signed in to change notification settings - Fork 213
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
Access to load in memory coastline data #1636
Comments
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct. |
Please check this workaround I've coded to process the GSHHS shapefile using repository: coastline-loader best regards, |
Hi @aragong, thanks for your feature request and sharing your workaround! Do you mind sharing your use-case for the in-memory coastline data? I am wondering to find out more about how this feature would compare to functions or examples (which could leverage other packages) for working with Open Street Map data in PyGMT?
Can you clarify what you mean by this? Was direct access previously supported by GEBCO? |
Hi @meghanrjones, happy to help with the community.
You have a python notebook called example in the repository to load a custom subset of the EU coastline, please check README and a pre-executed example.ipynb files through previous links. (Also, you have
Sure, I miss this functionality because is a very very very common database that we use in my field, but I don't know if GEBCO has any protocol to share this data online like a public opendap or similar... I only want to say that, like the functionalities you have to access STRM databases, GEBCO access would be a very nice feature to achieve. Database-NetCDF size is around 4Gb. Let me know if you can run de examples, please. Thank you for your comments! |
I look forward to checking it out in more detail. The environment.yml file lists a lot of dependencies. It would be helpful if you could separate out what is needed for using versus developing the package (e.g., pygmt's environment.yml). We're cautious about adding new dependencies to avoid potential conflicts and bloating the required install time/size, which influences how features get implemented in PyGMT.
This may be possible (see GenericMappingTools/remote-datasets#3 (comment)). If you want to make a formal feature request for easy access to the GEBCO grid, the gmtserver-admin repository would be the place to do that. |
Thanks for your feedback,
You are right! following your advice, I reduce and split it into two files
I will do it soon, I hope... thank you! |
Description of the desired feature
I would like to have a method to obtain coastline data in python memory, as dataframe or similar standard format. I think this method fits perfectly within the section
pygmt.datasets
like:coast = pygmt.datasets.load_coastline(resolution="keyword", region="ES")
And the dataframe would look like:
I think this feature is a basic that will be used by many people and can improve the visibility/use of pyGMT. At the end of the day, we want a library to access the basics easily (to plot and also load data)
Also, I miss having direct access to GEBCO gridded bathymetry data that in coastal/ocean environments is really demanded.
Are you willing to help implement and maintain this feature? Yes/No
I would like to help but I am not sure to have the required knowledge... so I think I can't maintain/implement this feature. But let me know... I am always open to learning!
Thank you for your time, have a nice day!
The text was updated successfully, but these errors were encountered: