BuildGridDefinitionFromRaster Task

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 parameters (Set, Get): INPUT_RASTER, PIXEL_SIZE

Output parameters (Get only): OUTPUT_GRIDDEFINITION

Parameters marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Parameters marked as "Get" are those whose values you can retrieve but not set.

Input Parameters

INPUT_RASTER (required)

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

PIXEL_SIZE (optional)

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

Output Parameters

OUTPUT_GRIDDEFINITION

This is a reference to the output ENVIGridDefinition.

Methods

Execute

Parameter

ParameterNames

Properties

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

Version History

ENVI 5.5

Introduced

See Also

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