-
Notifications
You must be signed in to change notification settings - Fork 346
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
Support draping images over parts of a grid with grdview #3287
Comments
I missed to provide the context – it came from the forum. |
Well the docs only promise that different resolutions are allowed but in this case the image covers only a sub-region of the grid. Off course this case should be allowed too but Using 3 grids to represent an image is something we should really drop off. It comes form last century when we couldn't deal with images. |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
Is there still interest in placing images on parts of a grid? Like a georeferenced satellite images over a larger grid to provide context to the image? I could still make use of this … |
I agree that this would be useful. |
Great. @meghanrjones, would you recommend to keep this issue open or write a new feature request? |
I would keep this open, but from Joaquim's comments there may also be prerequisite refactoring of the handling of images. I am not familiar with what would be involved. |
Description of the problem
When draping a georeferenced image over some relief and they have different resolutions the image is stretched to fill the whole plot area instead of a correctly scaled placement.
The docs for
grdview -G
allow for different scales:Full script that generated the error
The files
CV.grd
,caboverde_mod.tif
andland_polygons_osm_caboverde.bf2
are provided indata.zip (467 KB)
CV.grd
is a subset of the GMT provided 3 arc second global relief,caboverde_mod.tif
is a simplified georeferenced tiff image, andland_polygons_osm_caboverde.bf2
is the coast outline from OpenStreetMap to have a precise coast line known to fit with the SRTM data.Actual outcome
Note the mismatch between the black coast line with blue water and the shaded terrain with the red coast line. The image (blue water and black coast line) appears to be stretched to fill the whole plot area instead of being correctly sized.
Expected outcome
I expected the image to be scaled (shrunk in this case) to the correct size when draped over the relief grid and not stretched to fill the whole plot area.
System information
gmt --version
): tested inThe text was updated successfully, but these errors were encountered: