After reading the grdview man page and several posts dealing with 3D perspective plotting doubts/issues, I am still wondering what I am doing wrong here. My grdview call is:
Is it normal to have that white area between the seafloor relief and the gray sides of the 3D perspective? Please find here the GeoTIFF file in case it is needed. I would appreciate your support to know if this is the normal behavior or it is a known bug in GMT 6.5.0 (yeah, I am not using GMT 6.7.0…).
Many thanks in advance for your nice support as always,
I played around with this. PyGMT (I saw you are using “normal” GMT) allows you to download the built-in GMT remote datasets into an xarray DataArray. This data can then be passed to grdview and plotted in the same way as your GeoTIFF file. Here, I use the Earth relief data.
Looking at the images above, I feel it’s not supported that the frontal facade follows the exact boundary of your GeoTIFF file, but it is related to a rectangle shape. This probably leads to the strange appearance here.
The problem seems likely related to -N that gets lost when it starts find NaNs along the grid’s edges. Not sure what to do in these cases. Probably erroring out and refusing to plot the side walls.
You can use grdcut to first save the grid for your region and then you should be able to use this file for plotting (e.g., with grdview) in “normal” GMT.
Totally agree @Joaquim the strange apparence of the plot is due to the missig grid’s wall and that -N or plane does not follow the exact bourdary of the GeoTIFF file.
My idea here was, that one can get an alternative grid but with non-NaN values via the GMT remote datasets and then use this data instead for the map or desired analysis.
Yes Yvonne, I understood that. But it’s to be clear on the reason of that result. Ofc it would be nice to detect it in advance and refuse to draw the walls but that needs work (and not unnecessarily slow down the rest of the code).