Repository navigation
Conversation
Rebaptized gmtlib_grd_flip_vertical as gmt_grd_flip_vertical and move prototype to gmt_prototypes.h so modules can use this function.
obaney
pushed a commit
to obaney/gmt
that referenced
this pull request
Aug 18, 2021
…ools#159) 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 (GenericMappingTools#124).
obaney
pushed a commit
to obaney/gmt
that referenced
this pull request
Aug 18, 2021
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 GenericMappingTools#124
obaney
pushed a commit
to obaney/gmt
that referenced
this pull request
Aug 18, 2021
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 GenericMappingTools#124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebaptized gmtlib_grd_flip_vertical as gmt_grd_flip_vertical and move prototype to gmt_prototypes.h so modules can use this function. This was used in grdppa which caused some warnings.