ReprojectGLT Task
This task reprojects a raster georeferenced by a GLT (Geographic Lookup Table) to standard map information.
Example
This example georeferences and removes bowtie artifacts from an NPP VIIRS Land Surface Temperature EDR image.
; Start the application
e = ENVI()
; Open an NPP VIIRS unprojected raster
VIIRSFile = 'GMTCO-VLSTO_npp_d20150226_t0452277_e0458081_b17263_c20150327102544074141_noaa_ops.h5'
Raster = e.OpenRaster(VIIRSFile)
; Raster[0] is the LST raster
; Raster[1] is the Latitude raster
; Raster[2] is the Longitude raster
; Raster[3] is the Height raster
; Raster[4] is the Quality raster
; Get the reprojection task from the catalog of ENVITasks
Task = ENVITask('ReprojectGLT')
; Define inputs
Task.Input_Raster = Raster[0]
Task.Latitude_Raster = Raster[1]
Task.Longitude_Raster = Raster[2]
Task.Quality_Raster = Raster[4]
Task.Quality_Flag = 255
; 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('ReprojectGLT')
Input properties (Get, Set): INPUT_RASTER, LATITUDE_RASTER, LONGITUDE_RASTER, QUALITY_RASTER, INTERPOLATION_METHOD, POLAR, QUALITY_FLAG, OUTPUT_RASTER_URI
Output propreties (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:
INPUT_RASTER (required)
Specify the raster to reproject.
INTERPOLATION_METHOD (optional)
The GLT algorithm establishes a regular output grid and finds the best location for each source image pixel. Any output grid point for which a source pixel could not be found will be filled using the nearest valid neighbor or with a distance-weighted average of the surrounding valid values.
The default interpolation method for reprojection is a distance-weighted average, which creates an image with the fewest visible interpolation artifacts.
Set the INTERPOLATION_METHOD property to 1 to perform nearest-neighbor interpolation in cases where the set of valid pixel values should not be modified (for example, when values represent the integral values of a classification).
LATITUDE_RASTER (required)
Specify a raster that represents the Latitude band of a GLT image.
LONGITUDE_RASTER (required)
Specify a raster that represents the Longitude band of a GLT image.
OUTPUT_RASTER
This is a reference to the output raster of filetype ENVI.
OUTPUT_RASTER_URI (optional)
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.
POLAR (optional)
The default output projection is Geographic WGS-84. Set this property to true
for a Polar Stereographic WGS-84 projection if the imagery covers the polar regions.
QUALITY_FLAG (optional)
Specify a value to set on the Quality Flag raster (specified by the QUALITY_RASTER property). The default value is 2, which is used to reproject some NPP VIIRS products. For EDR-Derived NPP VIIRS products and MODIS products, set this property to 255.
QUALITY_RASTER (required)
Specify a raster that represents the Quality Flag band of a GLT image.
Version History
ENVI 5.1 |
Introduced |
ENVI 5.2 |
The POLAR property is a Boolean type; valid options are true or false . |
API Version
4.2