NAME
grdclip - Clipping of range in grdfiles.
SYNOPSIS
grdclip input_file.grd -Goutput_file.grd [ -Ahigh/above ] [
-Blow/below ] [ -V ]
DESCRIPTION
grdclip will set values < low to below and/or values > high
to above. Useful when you want all of a continent or an
ocean to fall into one color or grayshade in image process-
ing, or clipping of the range of data values is required.
above/below can be any number or NaN (Not a Number). You
must choose at least one of -A or -B.
input_file.grd
The input 2-D binary grdfile.
-G output_file.grd is the modified output grdfile.
OPTIONS
-A Set all data[i] > high to above.
-B Set all data[i] < low to below.
-V Selects verbose mode, which will send progress reports
to stderr [Default runs "silently"].
EXAMPLES
To set all values > 70 to NaN and all values < 0 to 0 in
file data.grd, try:
grdclip data.grd -Gnew_data.grd -A70/NaN -B0/0 -V
SEE ALSO
gmt, grdlandmask, grdmask, grdmath, grd2xyz, xyz2grd
REFERENCES
Wessel, P., and W. H. F. Smith, 1995, The Generic Mapping
Tools (GMT) version 3.0 Technical Reference & Cookbook,
SOEST/NOAA.
Wessel, P., and W. H. F. Smith, 1995, New Version of the
Generic Mapping Tools Released, EOS Trans. AGU, 76, p. 329.
Wessel, P., and W. H. F. Smith, 1995, New Version of the
Generic Mapping Tools Released,
http://www.agu.org/eos_elec/95154e.html, Copyright 1995 by
the American Geophysical Union.
Wessel, P., and W. H. F. Smith, 1991, Free Software Helps
Map and Display Data, EOS Trans. AGU, 72, p. 441.