Geoscience Reference
In-Depth Information
be specified only once, and in that case, it applies to all bands of the output
dataset. Starting with GDAL 2.0, -scale can be repeated several times (if specified
only once, it also applies to all bands of the output dataset), so as to specify per
band parameters. It is also possible to use the -scale_bn syntax where bn is a
band number (e.g. -scale_2 for the 2nd band of the output dataset) to specify the
parameters of one or several specific bands.
-exponent exp_val
(From GDAL 2.0) To apply non-linear scaling with a power function. exp_val
is the exponent of the power function (must be positive). This option must be
used with the -scale option. If specified only once, -exponent applies to all bands
of the output image. It can be repeated several times so as to specify per band
parameters. It is also possible to use the -exponent_bn syntax where bn is a band
number (e.g. -exponent_2 for the 2nd band of the output dataset) to specify the
parameters of one or several specific bands.
-unscale
Apply the scale/offset metadata for the bands to convert scaled values to unscaled
values. It is also often necessary to reset the output datatype with the -ot switch.
-srcwin xoff yoff xsize ysize
Selects a subwindow from the source image for copying based on pixel/line
location.
-projwin ulx uly lrx lry
Selects a subwindow from the source image for copying (like -srcwin) but with
the corners given in georeferenced coordinates.
-epo
(Error when Partially Outside) (from GDAL 1.10) If this option is set, -srcwin
or -projwin values that falls partially outside the source raster extent will be
considered as an error. The default behavior starting with GDAL 1.10 is to accept
such requests, when they were considered as an error before.
-eco
(Error when Completely Outside) (from GDAL 1.10) Same as -epo, except that
the criterion for erroring out is when the request falls completely outside the
source raster extent.
-a_srs srs_def
Override the projection for the output file. The srs_def may be any of the usual
GDAL/OGR forms, complete WKT, PROJ.4, EPSG:n or a file containing the
WKT.
-a_ullr ulx uly lrx lry
Assign/override the georeferenced bounds of the output file. This assigns georef-
erenced bounds to the output file, ignoring what would have been derived from
the source file.
-a_nodata value
Assign a specified no-data value to output bands. Starting with GDAL 1.8.0, can
be set to none to avoid setting a no-data value to the output file if one exists for
the source file.
Search WWH ::




Custom Search