Open apasto opened 2 years ago
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. We appreciate that you took the time to contribute!
Yep, can confirm this behavior in Julia (GMT.jl) too, which functions in a similar way to the gmtmex
. This points to the issue being in the GMT lib itself.
Thanks for the report.
Hello everyone,
Description of the problem
I am trying to extend a grid onto a new region, including but exceeding the original boundaries, using grdcut with the -N option. However, the returned grid structure retains the original region unchanged: no nan-padding occurs.
Full script that generated the error
This minimal example reproduces the issue:
This also fails with fill values other than nan, e.g.
-N0
.G_1 region is left unchanged, still equal to G_0 extents:
Writing G_0 to file and calling gmt grdcut -N outside Matlab, from the shell, the nan-fill extension works as expected.
Full error message
System information