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.
e = ENVI()
VIIRSFile = 'GMTCO-VLSTO_npp_d20150226_t0452277_e0458081_b17263_c20150327102544074141_noaa_ops.h5'
Raster = e.OpenRaster(VIIRSFile)
Task = ENVITask('ReprojectGLT')
Task.Input_Raster = Raster[0]
Task.Latitude_Raster = Raster[1]
Task.Longitude_Raster = Raster[2]
Task.Quality_Raster = Raster[4]
Task.Quality_Flag = 255
Task.Execute
DataColl = e.Data
DataColl.Add, Task.OUTPUT_RASTER
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
Syntax
Result = ENVITask('ReprojectGLT')
Input parameters (Set, Get): INPUT_RASTER, LATITUDE_RASTER, LONGITUDE_RASTER, OUTPUT_RASTER_URI, QUALITY_FLAG, QUALITY_RASTER, RESAMPLING_METHOD
Output parameters (Get only): OUTPUT_RASTER
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 the raster to reproject.
LATITUDE_RASTER (optional)
Optionally specify a raster that represents the Latitude band of a GLT image. If not set, the Latitude band from the INPUT_RASTER is used (the INPUT_RASTER must have GLT projection).
LONGITUDE_RASTER (optional)
Optionally specify a raster that represents the Longitude band of a GLT image. If not set, the Longitude band from the INPUT_RASTER is used (the INPUT_RASTER must have GLT projection).
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 parameter, or set it to an exclamation symbol (!), ENVI creates a temporary file.
- If you set it to the hash symbol (#), ENVI creates a file in the temporary directory, but this file will not be deleted when ENVI closes.
QUALITY_FLAG (optional)
Specify a value to set on the Quality Flag raster (specified by the QUALITY_RASTER parameter). 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 parameter to 255.
QUALITY_RASTER (required)
Specify a raster that represents the Quality Flag band of a GLT image.
RESAMPLING (optional)
Specify one of the following resampling methods:
Nearest Neighbor: Uses the nearest pixel without any interpolation.
Distance-Weighted Average: (default) Uses the average of the nearby pixels to creates an image with the fewest visible interpolation artifacts.
Output Parameters
OUTPUT_RASTER
This is a reference to the output raster of filetype ENVI.
Methods
Execute
Parameter
ParameterNames
Properties
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
TAGS
Version History
|
ENVI 5.1 |
Introduced |
|
ENVI 5.2 |
The POLAR parameter is a Boolean type; valid options are true or false.
|
|
ENVI 6.0 |
Removed LATITUDE_RASTER and LONGITUDE_RASTER parameters.
|
|
ENVI 6.1 |
Re-added LATITUDE_RASTER and LONGITUDE_RASTER as optional parameters.
|
See Also
ENVITask, ReprojectRaster Task