GeezerVison is showing github.com — Wrap GMT's standard data type GMT_CUBE for cubes and support reading/writing cubes by seisman · Pull Request #3150 · GenericMappingTools/pygmt
Conversation
seisman
commented
Mar 31, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Similar to #3338 and #3128, but for wrapping GMT_CUBE.
Main changes in this PR:
- Wrap GMT's standard data type
GMT_CUBE
- Implement the
to_xarray method
- Let low-level functions (e.g.,
read_data/write_data) support cubes
- Extend the xarray backend to support cubes (i.e.,
xr.open_dataarray("xxx.cube", engine="gmt", kind="cube")
Known issues:
- It seems we can't use
lib.call_module("read", "@cube.nc out.nc -Tu") for cubes. The similar command works well for grids and images. It's likely an upstream bug.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
seisman
changed the title
Wrap GMT's standard data type GMT_CUBE for cubes
Wrap GMT's standard data type GMT_CUBE for cubes and support reading/writing cubes
Aug 25, 2026
This branch has not been deployed
No deployments
Reviewers
At least 1 approving review is required to merge this pull request.
Uh oh!
There was an error while loading. Please reload this page.
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|