|
Changes the data type of the input raster
to the output type specified by the user..
Inputs:
- Input floating point or integer raster
- Output raster name and format.
- Output type.
Output:
- An
raster of the specified data type
- The NODATA of the output will be
- The same as the NODATA value of the input if it is
within the range of the selected output type
- Assigned automatically based on the selected output
type if the input NODATA value is out of the range of the output data
type selected.
- If the input raster has values that are out of the
range of the output data type, these values will be stored as NODATA.
Example: If the input raster is of floating point
type and the output type selected is "Byte"
- The output raster will have NODATA = 255
- The output raster will have values only in the cells
where the original raster has values between 0 and 254 and these values
will be rounded to the closest integer. The rest of the cells will have
NODATA value.
Notes:
- Initially the name of the output raster
defines the raster format
- no extension specified - ESRI binary GRID
- .img extension (for example raster1.img) -
ERDAS IMAGINE image.
- .tif extension (for example raster1.tif -
Tagged Image File Format (TIFF) image.
- The initial output raster format can be
changed by selecting the desired output in the dialog.
- Currently only file based rasters are
supported. Rasters cannot be stored in a GeoDatabase. After you get the
desired result, you can export the raster to a GeoDatabase using the
standard ArcGIS tools.
ToolBox
implementation
Command line syntax
ETS_GPChangeRasterType <Input Raster> <Out
Raster> <Out Type>
Parameters
| Expression |
Explanation |
| <Input
Raster> |
A
Raster dataset or Raster layer |
| <Out
Raster> |
A String
- the full name of the output raster (A raster with the same full
name should not exist). The output raster type depends on the extension
of the output file(see Notes above) |
| <Out
Type> |
A String indicating
the slope units. Valid inputs "Byte", "Double", "Long", "Short", "Single" |
Scripting syntax
ETS_GPChangeRasterType (Input
Raster, Out Raster, Out Type)
See the explanations above:
<> - required parameter
{} - optional parameter
All ESRI
products mentioned are trademarks of Environmental Systems Research
Institute, Inc.
Copyright: Ianko Tchoukanski |