It fails with the following message
grdview (gmtapi_import_grid): Could not reallocate memory [4976.00 Gb, 1335734529874 items of 4 bytes]
grdview (gmtnc_grd_prep_io): Subset x range <= 0.0 [./Elev15.grd]
ERROR: Caught signal number 11 (Segmentation fault) at
/lib/x86_64-linux-gnu/libc.so.6(+0x18ef51)[0x7f4f4da6ef51]
[0x0]
Stack backtrace:
/opt/GMT/lib/libgmt.so.6(sig_handler+0x2b1)[0x7f4f4df2b221]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x128a0)[0x7f4f4dce38a0]
/lib/x86_64-linux-gnu/libc.so.6(+0x18ef51)[0x7f4f4da6ef51]
/opt/GMT/lib/libgmt.so.6(gmt_nc_read_grd+0xa26)[0x7f4f4dfb7636]
/opt/GMT/lib/libgmt.so.6(gmtlib_read_grd+0x1df)[0x7f4f4df91d3f]
/opt/GMT/lib/libgmt.so.6(+0x61d2d)[0x7f4f4df51d2d]
/opt/GMT/lib/libgmt.so.6(GMT_Read_Data+0xd72)[0x7f4f4df5c252]
/opt/GMT/lib/libgmt.so.6(GMT_grdview+0x1eaa)[0x7f4f4e1ec38a]
/opt/GMT/lib/libgmt.so.6(GMT_Call_Module+0x206)[0x7f4f4df44106]
gmt(main+0x6cf)[0x55dc94a516cf]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f4f4d901b97]
gmt(_start+0x2a)[0x55dc94a521aa]
It worked with GMT 6.0 (I have simplified the call, but it should still show the issue)
Hi Joaquim.
Thanks for your support. Unfortunately, we create several maps, that span across the 180°W/E. So we add the “r” to the -R option, to give lower left and upper right corner. The lower left is on the Eastern Hemisphere and the upper right is on the Western hemisphere. The following example works fine:
It uses the same -R option as in my first post, only the projection changed from Mercator to Lambert projection. With GMT 6.0.1 I was able to produce good results with the Mercator projection as well.
Thanks for simplifying my example with the @earth_relief_15m and by removing the additional options.
So, to summarize. The call works in GMT 6.0.1 and 6.1 with: -JL177.7/44.5/20.36/56.74/32.7c
It doesn’t work in GMT 6.1, only in GMT 6.0.1, with: -JM0/0/32.7c
Do you have any idea, how to fix or work around this?
It should be possible to relax this a bit for some projections, such as Mercator, by ensuring east > west by adding 360. For others, especially the oblique, we cannot do so but they are mostly OK with this. I am testing a patch that lest the rectangular cylindrical projections tolerate such reversals.