-
Notifications
You must be signed in to change notification settings - Fork 224
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
Figure.psconvert: Add support for GeoTIFF output #2658
Comments
@EJFielding After reading the documentation, my impressions are:
Do I understand it correctly? |
I have only used the |
I've done a few tests to understand GMT's behavior about GeoTIFF support. The test PS file is generated using the following command:
I've tried the following commands:
Usually, both I'm wondering if we should follow the same convention as GMT? If yes, then we can provide a Pythonic user interface for PyGMT users:
As PyGMT maintainers, we just need to check the file extension. If it's If we decide not to follow the GMT convention, then we may want to add a new parameter (e.g., What do you think? @EJFielding @GenericMappingTools/pygmt-maintainers |
If I understand this feature request, it sounds like we just need to alias Lines 129 to 143 in e4bd4fb
Should be easier to follow the GMT convention to avoid adding another parameter that can get confusing. Technically, a normal TIFF file would become a 'GeoTIFF' if there is a corresponding tfw file, whereas a GeoTIFF has the geo metadata baked into the TIFF file directly. As long as we properly document that of tif=TIFF and tiff=GeoTIFF, it should be fine, and users can always rename Oh, and just to be clear, modifying |
Hi, I have been traveling for the last week. I am not sure which implementation is best. I think the details are not so important and you can choose what you think works best with the rest of PyGMT. I am happy to test a developer version. |
See PR #2698. We don't need to modify @EJFielding I've implemented the GeoTIFF support in PR #2698. It would be great if you can give it a try. It's not finished yet. I still need to add some tests to check if the generated file is georeferenced or not. |
Edit: Now PR #2698 should work. |
Description of the desired feature
In classic GMT, I have long used this command to generate a GeoTIFF file from an EPS file:
I see there is a
pygmt.Figure.psconvert
call that wraps the GMTpsconvert
but it does not seem to have the-W+g
option to make a GeoTIFF.The GeoTIFF output is extremely helpful for taking a GMT or PyGMT map and loading it into Google Earth or QGIS to view it with other geographic information. I attach an example of a map that I made in GMT that I converted to GeoTIFF and then opened as an image overlay in Google Earth.
Are you willing to help implement and maintain this feature?
Maybe
The text was updated successfully, but these errors were encountered: