Skip to content

Add a flag to specify that a grid needs to have 2 boundary pads #5886

Closed

Description

@maxrjones

Description of the desired feature

Originally posted in GenericMappingTools/pygmt#1309 (comment):

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

  1. added
    feature request
    on Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions