Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/rst/source/grdimage_common.rst_
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description
-----------

**grdimage** reads a 2-D grid file and produces a gray-shaded (or
colored) map by by building a rectangular image and assigning pixels
colored) map by building a rectangular image and assigning pixels
a gray-shade (or color) based on the z-value and the CPT file.
Optionally, illumination may be added by providing a file with
intensities in the (-1,+1) range or instructions to derive intensities
Expand Down
2 changes: 1 addition & 1 deletion src/gmt_grd.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ enum gmt_enum_wesnids {
/*! IJ macro using h but treats the entire grid with pad as no-pad grid, i.e. using mx as width */
#define gmt_M_ij(h,row,col) ((uint64_t)(((int64_t)(row))*((int64_t)h->mx)+(int64_t)(col)))
/*! IJPGI macro using h and the pad info that works for either grids (n_bands = 1) or images (n_bands = 1,3,4) */
#define gmt_M_ijpgi(h,row,col) ((uint64_t)(((int64_t)(row)+(int64_t)h->pad[YHI])*((int64_t)h->mx*(int64_t)h->n_bands)+(int64_t)(col)+(int64_t)h->pad[XLO]*(int64_t)h->n_bands))
#define gmt_M_ijpgi(h,row,col) ((uint64_t)(((int64_t)(row)+(int64_t)h->pad[YHI])*((int64_t)h->mx*(int64_t)h->n_bands)+((int64_t)(col)+(int64_t)h->pad[XLO])*(int64_t)h->n_bands))

/*! Obtain row and col from index */
#define gmt_M_col(h,ij) (((ij) % h->mx) - h->pad[XLO])
Expand Down
Loading