This task returns a grid definition, which provides the information needed to georeference rasters to a common coordinate system.
Example
e = ENVI()
File = Filepath('qb_boulder_msi', Subdir=['data'], $
Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
Task = ENVITask('BuildGridDefinitionFromRaster')
Task.INPUT_RASTER = Raster
Task.Execute
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
API Version
4.3
See Also
ENVITask, ENVIGridDefinition, CalculateGridDefinitionFromRasterIntersection Task, CalculateGridDefinitionFromRasterUnion Task, RegridRaster Task, RegridRasterSeriesByIndex Task, RegridRasterSeriesByIntersection Task, RegridRasterSeriesByUnion Task