grdinfo - Get information about the contents of a 2-D grd file

grdinfogrdfiles[-C] [-F] [-Idx[/dy] ][-L1] [-L2] [-M] [-Tdz] [-V] [-f[i|o]colinfo]

grdinforeads a 2-D binary grd file and reports various statistics for the (x,y,z) data in the grdfile. The output information contains the minimum/maximum values for x, y, and z, where the min/max of z occur, the x- and y-increments, and the number of x and y nodes, and [option- ally] the mean, standard deviation, and/or the median, L1 scale of z, and number of nodes set to NaN.grdfileThe name of one or several 2-D grd files.

No space between the option flag and the associated arguments.-CFormats the report using tab-separated fields on a single line. The output iswesnz0z1dxdynxny[x0y0x1y1] [medscale] [meanstdrms] [n_nan]. The data in brackets are out- put only if the corresponding options-M,-L1,-L2, and-Mare used, respectively. If the-Ioption is used, the output format is insteadNFwesnz0z1, whereNFis the total number of grids read andwesnare rounded off (see-I).-FReport grid domain and x/y-increments in world mapping format [Default is generic]. Does not apply to the-Coption.-IReport the min/max of the region to the nearest multiple ofdxanddy, and output this in the form-Rw/e/s/n(unless-Cis set).-L1Report median and L1 scale of z (L1 scale = 1.4826 * Median Absolute Deviation (MAD)).-L2Report mean and standard deviation of z.-MFind and report the location of min/max z-values, and count and report the number of nodes set to NaN, if any.-TDetermine min and max z-value, round off to multiples ofdz, and report as the text string-Tzmin/zmax/dzfor use bymakecpt.-VSelects verbose mode, which will send progress reports to stderr [Default runs "silently"].-fSpecial formatting of input and output columns (time or geo- graphical data) Specifyi(nput) oro(utput) [Default is both input and output]. Give one or more columns (or column ranges) separated by commas. AppendT(Absolute calendar time),t(time relative to chosen TIME_EPOCH),x(longitude),y(latitude),g(geographic coordinate), orf(floating point) to each column or column range item.

To obtain all the information about the data set in file hawaii_topo.grd:grdinfo-L1-L2-Mhawaii_topo.grd

gmt(l),grd2cpt(l),grd2xyz(l),grdedit(l) GMT4.0 1 Oct 2004 GRDINFO(l)

Man(1) output converted with man2html