|
@@ -1,13 +1,16 @@
|
|
|
<h2>DESCRIPTION</h2>
|
|
|
|
|
|
-<em>r.import</em> imports selected bands from a GDAL raster datasouce
|
|
|
-into the current location and mapset. If the projection of the input
|
|
|
-does not match the projection of the location, the input is reprojected
|
|
|
-into the current location. If the projection of the input does match
|
|
|
-the projection of the location, the input is imported directly with <a
|
|
|
-href="r.in.gdal.html">r.in.gdal</a>.
|
|
|
-
|
|
|
-<h4>Resolution</h4>
|
|
|
+<em>r.import</em> imports a map or selected bands from a GDAL raster datasource
|
|
|
+into the current location and mapset. If the projection of the input
|
|
|
+does not match the projection of the location, the input is reprojected
|
|
|
+into the current location. If the projection of the input does match
|
|
|
+the projection of the location, the input is imported directly with
|
|
|
+<a href="r.in.gdal.html">r.in.gdal</a>.
|
|
|
+
|
|
|
+<h2>NOTES</h2>
|
|
|
+
|
|
|
+<h3>Resolution</h3>
|
|
|
+
|
|
|
<em>r.import</em> reports the estimated target resolution for each
|
|
|
input band. The estimated resolution will usually be some floating
|
|
|
point number, e.g. 271.301. In case option <b>resolution</b> is set to
|
|
@@ -20,7 +23,15 @@ and option <b>resolution</b>=<em>value</em>.
|
|
|
For latlong locations, the resolution might be set to arc seconds, e.g. 1, 3, 7.5,
|
|
|
15, and 30 arc seconds are commonly used resolutions.
|
|
|
|
|
|
-<h4>Resampling methods</h4>
|
|
|
+<h3>Resampling methods</h3>
|
|
|
+
|
|
|
+When reprojecting a map to a new spatial reference system, the projected
|
|
|
+data is resampled with one of four different methods: nearest neighbor,
|
|
|
+bilinear, bicubic iterpolation or lanczos.
|
|
|
+
|
|
|
+<p>
|
|
|
+In the following common use cases:
|
|
|
+<p>
|
|
|
<b>nearest</b> is the simplest method and the only possible method for
|
|
|
categorical data.
|
|
|
<p>
|
|
@@ -39,21 +50,56 @@ Both <b>bicubic</b> and <b>lanczos</b> preserve linear features. With
|
|
|
features after reprojection.
|
|
|
|
|
|
<p>
|
|
|
-For explanation of <b>-l</b> flag, please refer to <a href="r.in.gdal.html">r.in.gdal</a> manual.
|
|
|
+For explanation of the <b>-l</b> flag, please refer to the
|
|
|
+<a href="r.in.gdal.html">r.in.gdal</a> manual.
|
|
|
+<p>
|
|
|
+When importing whole-world maps the user should disable map-trimming with
|
|
|
+the <b>-n</b> flag. For further explanations of <b>-n</b> flag, please refer
|
|
|
+the to <a href="r.proj.html">r.proj</a> manual.
|
|
|
+
|
|
|
+<h2>EXAMPLE</h2>
|
|
|
+
|
|
|
+Import of a subset from <a href="">Bioclim data set</a>, to be reprojected
|
|
|
+to current location projection (North Carolina sample dataset). While normally
|
|
|
+the full raster map is imported, we spatially subset using the <em>extent</em>
|
|
|
+parameter:
|
|
|
+
|
|
|
+<div class="code"><pre>
|
|
|
+# download selected Bioclim data
|
|
|
+wget http://biogeo.ucdavis.edu/data/climate/worldclim/1_4/grid/cur/bio_2-5m_bil.zip
|
|
|
+
|
|
|
+# extract BIO1 from package:
|
|
|
+unzip bio_2-5m_bil.zip bio1.bil bio1.hdr
|
|
|
+
|
|
|
+# set computational region to North Carolina, 4000 m target pixel resolution
|
|
|
+g.region -d res=4000 -ap
|
|
|
+
|
|
|
+# subset to current region and reproject on the fly to current location projection,
|
|
|
+# using -n since whole-world map is imported:
|
|
|
+r.import input=bio1.bil output=bioclim01 resample=bilinear \
|
|
|
+ extent=region resolution=region -n
|
|
|
+
|
|
|
+r.info bioclim01
|
|
|
+r.univar -e bioclim01
|
|
|
+</pre></div>
|
|
|
|
|
|
<h2>KNOWN ISSUES</h2>
|
|
|
-Option <b>extent</b>=<em>region</em> works only when dataset has different
|
|
|
-projection than current location (<a href="r.proj.html">r.proj</a> is then used).
|
|
|
+
|
|
|
+The option <b>extent</b>=<em>region</em> only works when the dataset has a
|
|
|
+different projection than the current location (i.e., internally
|
|
|
+<a href="r.proj.html">r.proj</a> is invoked).
|
|
|
|
|
|
<h2>SEE ALSO</h2>
|
|
|
|
|
|
<em>
|
|
|
-<a href="r.in.gdal.html">r.in.gdal</a>,<br>
|
|
|
+<a href="r.in.gdal.html">r.in.gdal</a>,
|
|
|
<a href="r.proj.html">r.proj</a>
|
|
|
</em>
|
|
|
|
|
|
<h2>AUTHORS</h2>
|
|
|
|
|
|
Markus Metz<br>
|
|
|
+Improvements: Martin Landa, Anna Petrasova
|
|
|
|
|
|
-<p><i>Last changed: $Date: 2015-01-20 20:52:27 +0100 (Tue, 20 Jan 2015) $</i>
|
|
|
+<p>
|
|
|
+<i>Last changed: $Date: 2015-01-20 20:52:27 +0100 (Tue, 20 Jan 2015) $</i>
|