<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>GRASS GIS: r.resample</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="grassdocs.css" type="text/css"> </head> <body bgcolor="white"> <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade> <h2>NAME</h2> <em><b>r.resample</b></em> - GRASS raster map layer data resampling capability. <h2>KEYWORDS</h2> raster <h2>SYNOPSIS</h2> <b>r.resample</b><br> <b>r.resample help</b><br> <b>r.resample</b> [-<b>q</b>] <b>input</b>=<em>string</em> <b>output</b>=<em>string</em> [--<b>overwrite</b>] [--<b>verbose</b>] [--<b>quiet</b>] <h3>Flags:</h3> <DL> <DT><b>-q</b></DT> <DD>Quiet</DD> <DT><b>--overwrite</b></DT> <DD>Allow output files to overwrite existing files</DD> <DT><b>--verbose</b></DT> <DD>Verbose module output</DD> <DT><b>--quiet</b></DT> <DD>Quiet module output</DD> </DL> <h3>Parameters:</h3> <DL> <DT><b>input</b>=<em>string</em></DT> <DD>Name of an input layer</DD> <DT><b>output</b>=<em>string</em></DT> <DD>Name of an output layer</DD> </DL> <H2>DESCRIPTION</H2> <EM>r.resample</EM> resamples the data values in a user-specified raster input map layer <EM>name</EM> (bounded by the current geographic region and masked by the current mask), and produces a new raster output map layer <EM>name</EM> containing the results of the resampling. The category values in the new raster output map layer will be the same as those in the original, except that the resolution and extent of the new raster output map layer will match those of the current geographic region settings (see <EM><A HREF="g.region.html">g.region</A></EM>). <H2>NOTES</H2> The method by which resampling is conducted is "nearest neighbor" (see <EM><A HREF="r.neighbors.html">r.neighbors</A></EM>). The resulting raster map layer will have the same resolution as the resolution of the current geographic region (set using <EM><A HREF="g.region.html">g.region</A></EM>). <P> The resulting raster map layer may be identical to the original raster map layer. The <EM>r.resample</EM> program will copy the color table and history file associated with the original raster map layer for the resulting raster map layer and will create a modified category file which contains description of only those categories which appear in resampled file. <P> When the user resamples a GRASS <EM>reclass</EM> file, a true raster map is created by <EM>r.resample</EM>. <H2>SEE ALSO</H2> <EM><A HREF="g.region.html">g.region</A></EM>, <EM><A HREF="r.mapcalc.html">r.mapcalc</A></EM>, <EM><A HREF="r.mfilter.html">r.mfilter</A></EM>, <EM><A HREF="r.neighbors.html">r.neighbors</A></EM>, <EM><A HREF="r.rescale.html">r.rescale</A></EM> <H2>AUTHOR</H2> Michael Shapiro, U.S.Army Construction Engineering Research Laboratory <p><i>Last changed: $Date: 2006-12-13 15:21:43 +0100 (Wed, 13 Dec 2006) $</i> <HR> <P><a href="index.html">Main index</a> - <a href="raster.html">raster index</a> - <a href="full_index.html">Full index</a></P> <P>© 2003-2008 <a href="http://grass.osgeo.org">GRASS Development Team</a></p> </body> </html>