-
Notifications
You must be signed in to change notification settings - Fork 220
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
Wrapper for grdimage #124
Comments
Hi @El-minadero, thanks for writing and offering to help! Sorry for the late reply. There is still a piece of infrastructure missing from Once that is done, we can work on wrapping the Since GMT uses netCDF grids, I'm thinking of having xarray.Dataset as our "official" grid format. We can't use plain numpy arrays most of the time because there are no coordinates attached (and we need those). It would also make it easy to load netCDF data and pass it directly to The hillshading in GMT6 is a lot easier. You can get a hillshaded map with a single option ( I'll ping back here when I have the xarray support working and we can discuss adding |
I second this feature request! Actually, just more support for the whole grd[cmd] interface! |
@adamnicholasprice thanks for the feedback! I'll update this issue when the required infrastructure is in place. |
Implements a new context manager `LibGMT.grid_to_vfile` that takes an `xarray.DataArray`, creates a `GMT_MATRIX` to store the data, passes it along to a virtual file, and yields the virtual file name. This is the main building block for supporting the `grd*` commands (#124).
Quick update on this issue, now that #159 is merged we can start wrapping the grid plotting modules. @El-minadero if you want to take a stab at wrapping grdimage let me know. Look at the docs for |
Enable grdimage for file input. Passing in `xarray.DataArray` isn't working because of some bugs in the GMT C API. This will require some work on the GMT side before we can use it. Implement basic support for grdinfo as well for testing. Starts to implement #124
@El-minadero @adamnicholasprice @leouieda I'd like to help implement it if no one is working on this issue. |
@seisman I'm working out some kinks still on the API to get this working. We found a few bugs in GMT related to grids because this part of the API was never exercised. I'm hoping to have it done tomorrow. |
Implements support for `xarray.DataArray` grids in `Figure.grdimage`. Not much changed here but this required a lot of changes to the GMT API itself. Lacking a bit in documentation but I'm working on a refactor of the library which will make these things easier. Fixes #124
Hey everyone. I'm trying to overlay/add terrain detail on a map, and not having much bash, C, jupyter notebook, or c family language experience, attempting to add a hillshade map has been difficult.
I've got a fair bit of experience with python projects collaboration and OOP stuff, and Id be willing to help implement this feature, but of course the C side stuff is very foreign to me.
The text was updated successfully, but these errors were encountered: