next up previous contents index
Next: B.2.2.1 Grid line registration Up: B.2 Grid files Previous: B.2.1 NetCDF files   Contents   Index


B.2.2 Grid line and Pixel registration

Scanline format means that the data are stored in rows (y = constant) going from the ``top'' ($y = y_{max}$ (north)) to the ``bottom'' ($y = y_{min}$ (south)). Data within each row are ordered from ``left'' ($x = x_{min}$ (west)) to ``right'' ($x = x_{max}$ (east)). The node_offset signals how the nodes are laid out. The grid is always defined as the intersections of all x ( \( x = x_{min}, x_{min} + x_{inc}, x_{min} + 2 \cdot x_{inc}, \ldots, x_{max} \) ) and y ( \( y = y_{min}, y_{min} + y_{inc}, y_{min} + 2 \cdot y_{inc}, \ldots, y_{max} \) ) lines. The two scenarios differ in which area each data point represents. The default registration in GMT is grid line registration. Most programs can handle both types, and for some programs like grdimage a pixel registered file makes more sense. Utility programs like grdsample and grdproject will allow you to convert from one format to the other.



Subsections
next up previous contents index
Next: B.2.2.1 Grid line registration Up: B.2 Grid files Previous: B.2.1 NetCDF files   Contents   Index
Paul Wessel 2006-01-01