Visit The New, Modern Unix Linux Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #750
Difficulty: Medium
The IBM Personal Computer/AT (model 5170), announced on August 15, 1984.
True or False?
Linux & Unix Commands - Search Man Pages

grdclip(1) [debian man page]

GRDCLIP(l)																GRDCLIP(l)

grdclip - Clipping of range in grdfiles. SYNOPSIS
grdclip input_file.grd -Goutput_file.grd [ -Sahigh/above ] [ -Sblow/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 processing, 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 -Sa or -Sb. input_file.grd The input 2-D binary grdfile. -G output_file.grd is the modified output grdfile. OPTIONS
-Sa Set all data[i] > high to above. -Sb 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 -Sa70/NaN -Sb0/0 -V SEE ALSO
gmt(1gmt), grdlandmask(1gmt), grdmask(1gmt), grdmath(1gmt), grd2xyz(1gmt), xyz2grd(1gmt) 1 Aug 1993 GRDCLIP(l)

Check Out this Related Man Page

GRDCUT(l)																 GRDCUT(l)

grdcut - Extract a subregion out of a .grd file SYNOPSIS
grdcut input_file.grd -Goutput_file.grd -Rwest/east/south/north[r] [ -V ] DESCRIPTION
grdcut will produce a new output_file.grd file which is a subregion of input_file.grd. The subregion is specified with -Rwest/east/south/north as in other programs; the specified range must not exceed the range of input_file.grd. If in doubt, run grdinfo to check range. Complementary to grdcut there is grdpaste, which will join together two grdfiles along a common edge. input_file.grd this is the input .grd format file. -Goutput_file.grd this is the output .grd format file. -R west, east, south, and north specify the Region of interest. To specify boundaries in degrees and minutes [and seconds], use the dd:mm[:ss] format. Append r if lower left and upper right map coordinates are given instead of wesn. This defines the subregion to be cut out. OPTIONS
-V Selects verbose mode, which will send progress reports to stderr [Default runs "silently"]. EXAMPLES
Suppose you have used surface to grid ship gravity in the region between 148E - 162E and 8N - 32N, and you do not trust the gridding near the edges, so you want to keep only the area between 150E - 160E and 10N - 30N, then: grdcut grav_148_162_8_32.grd -Ggrav_150_160_10_30.grd -R150/160/10/30 -V SEE ALSO
grdpaste(1gmt), grdinfo(1gmt), gmt(1gmt) 1 Jan 2004 GRDCUT(l)

Featured Tech Videos