Skip to content
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

WIP: Wrap GMT's standard data type GMT_IMAGE for images #3128

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

seisman
Copy link
Member

@seisman seisman commented Mar 20, 2024

Similar to #2398 but for images.

@seisman seisman added the enhancement Improving an existing feature label Mar 20, 2024
Minimal xarray.DataArray output with data and coordinates, no metadata yet.
}[kind]
with self.open_virtualfile(family, geometry, "GMT_OUT", None) as vfile:
with self.open_virtualfile(
family, geometry, "GMT_OUT|GMT_IS_REFERENCE", None
Copy link
Member Author

Choose a reason for hiding this comment

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

For unknown reasons (likely upstream bug), using GMT_OUT crashes and GMT_OUT|GMT_IS_REFERENCE works for image. So better to use GMT_OUT for dataset/grid and GMT_OUT|GMT_IS_REFERENCE for image.

We also need to open an upstream issue and find out why.

@seisman
Copy link
Member Author

seisman commented Apr 14, 2024

xref GenericMappingTools/gmt#3299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants