You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a flag to specify that a grid needs to have 2 boundary pads #5886
The more general solution to these are to possibly add a flag to the mode passed to GMT_Read_Data that means "this grid needs to have 2 boundary pads and if not then make it so". This flag would not do much for the case of reading from a data file, but in the case of a read-only input matrix with no pad it would basically allocate the grid, copy in the matrix, and from there on out we are working with the GMT-allocated grid. So, this flag would be set based on need, as follows:
grdgrack: If -n implies the need for 2 rows/cols, pass GMT_GRID_NEEDS_PAD else not.
grdimage: If need_to_project = (gmt_M_is_nonlinear_graticule (GMT) || Ctrl->E.dpi > 0); is true then pass GMT_GRID_NEEDS_PAD in any GMT_Read_Data calls, else not.
Activity