MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / gmtapi_adjust_grdpadding

Function gmtapi_adjust_grdpadding

src/gmt_api.c:2357–2364  ·  view source on GitHub ↗

! . */

Source from the content-addressed store, hash-verified

2355
2356/*! . */
2357GMT_LOCAL bool gmtapi_adjust_grdpadding (struct GMT_GRID_HEADER *h, unsigned int *pad) {
2358 /* Compares current grid pad status to output pad requested. If we need
2359 * to adjust a pad we return true here, otherwise false. */
2360 unsigned int side;
2361
2362 for (side = 0; side < 4; side++) if (h->pad[side] != pad[side]) return (true);
2363 return (false);
2364}
2365
2366/*! . */
2367struct GMT_GRID_HEADER * gmt_get_header (struct GMT_CTRL *GMT) {

Callers 5

gmtapi_import_imageFunction · 0.85
gmtapi_import_gridFunction · 0.85
gmtapi_export_gridFunction · 0.85
gmtapi_import_cubeFunction · 0.85
gmtapi_export_cubeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected