Skip to content

Promote a function from library to module use - #124

Merged
remkos merged 1 commit into
masterfrom
promotion
Oct 16, 2018
Merged

remkos merged 1 commit into
masterfrom
promotion

Conversation

@PaulWessel

Copy link
Copy Markdown
Contributor

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.

Rebaptized gmtlib_grd_flip_vertical as gmt_grd_flip_vertical and move prototype to gmt_prototypes.h so modules can use this function.
@PaulWessel
PaulWessel requested review from a team and remkos October 16, 2018 04:04

@remkos remkos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@remkos
remkos merged commit 82b4b6c into master Oct 16, 2018
@remkos
remkos deleted the promotion branch October 16, 2018 12:55
@PaulWessel
PaulWessel restored the promotion branch October 16, 2018 20:14
@seisman
seisman deleted the promotion branch October 23, 2018 19:41
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
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

Successfully merging this pull request may close these issues.

2 participants