ExportRasterToTIFF Task
This task exports a raster to TIFF file format.
Example
; Start the application
e = ENVI()
; Open an input file
File = Filepath('qb_boulder_msi', Subdir=['data'], $
Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
; Get the task from the catalog of ENVITasks
Task = ENVITask('ExportRasterToTIFF')
; Define inputs
Task.INPUT_RASTER = Raster
; Run the task
Task.Execute
; Get the collection of data objects currently available in the Data Manager
DataColl = e.Data
; Add the output to the Data Manager
DataColl.Add, Task.OUTPUT_RASTER
; Display the result
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
Syntax
Result = ENVITask('ExportRasterToTIFF')
Input properties (Set, Get): DATA_IGNORE_VALUE, INPUT_RASTER, INTERLEAVE, OUTPUT_RASTER_URI
Output properties (Get only): OUTPUT_RASTER
Properties marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Properties marked as "Get" are those whose values you can retrieve but not set.
Methods
This task inherits the following methods from ENVITask:
Properties
This task inherits the following properties from ENVITask:
This task also contains the following properties:
DATA_IGNORE_VALUE (optional)
Specify a unique data value for pixels in the output raster that have a non-zero pixel state value. See Raster Pixel State for more information.
INPUT_RASTER (required)
Specify a raster to export to TIFF format.
INTERLEAVE (optional)
Specify a string indicating the data interleave of the output raster. If this parameter is not set, the interleave of the input raster will be used. The choices are:
BSQ
BIP
TIFF files do not support BIL interleave. If INTERLEAVE
is not set and the image has a BIL interleave, the image will be saved to BSQ interleave.
OUTPUT_RASTER
This is an object reference to the output raster, of filetype TIFF.
OUTPUT_RASTER_URI (required)
Specify a string with the fully qualified filename and path of the associated OUTPUT_RASTER. If you do not specify this property, or set it to an exclamation symbol (!), a temporary file will be created.
Version History
ENVI 5.5 |
Introduced |
API Version
4.2
See Also
ENVITask, ExportRasterToCADRG Task, ExportRasterToCOG Task, ExportRasterToENVI Task, ExportRasterToKMZ Task, ExportRasterToNITF20 Task, ExportRasterToNITF21 Task, ExportRasterToNSIF10 Task, ExportRasterToPNG Task