This task returns a grid definition, which provides the information needed to georeference rasters to a common coordinate system.

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('BuildGridDefinitionFromRaster')
 
; Define inputs
Task.INPUT_RASTER = Raster
 
; Run the task
Task.Execute
 
; Print the ENVIGridDefinition
Print, Task.OUTPUT_GRIDDEFINITION, /IMPLIED_PRINT

Syntax


Result = ENVITask('BuildGridDefinitionFromRaster')

Input properties (Set, Get): INPUT_RASTER, PIXEL_SIZE

Output properties (Get only): OUTPUT_GRIDDEFINITION

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:

AddParameter

Execute

Parameter

ParameterNames

RemoveParameter

Properties


This task inherits the following properties from ENVITask:

COMMUTE_ON_DOWNSAMPLE

COMMUTE_ON_SUBSET

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

This task also contains the following properties:

INPUT_RASTER (required)

Specify a raster with a SPATIALREF that defines the coordinate system to use for the grid definition.

OUTPUT_GRIDDEFINITION

This is a reference to the output ENVIGridDefinition.

PIXEL_SIZE (optional)

Specify a two-element array with the [x,y] pixel size in the same units as the raster.

Version History


ENVI 5.5

Introduced

API Version


4.2

See Also


ENVITask, ENVIGridDefinition, CalculateGridDefinitionFromRasterIntersection Task, CalculateGridDefinitionFromRasterUnion Task, RegridRaster Task, RegridRasterSeriesByIndex Task, RegridRasterSeriesByIntersection Task, RegridRasterSeriesByUnion Task