This task takes two overlapping single-band rasters and creates a three-band raster product combined as follows: the first raster will be applied to the red channel, the second raster will go to the green and blue channels. Thus, if the first raster represents an earlier time, the colors of the output can be interpreted with this mnemonic: red is fled, blue is new.
Example
e = ENVI()
File = Filepath('qb_boulder_pan', Subdir=['data'], Root_Dir=e.Root_Dir)
Raster1 = e.OpenRaster(File)
expression = '(b1*(b1 gt 700))^1.4 - (b1*(b1 le 300))^1.8'
Raster2 = ENVIPixelwiseBandMathRaster(Raster1, expression)
Task = ENVITask('TwoColorMultiview')
Task.INPUT_RASTER1 = Raster1
Task.INPUT_RASTER2 = Raster2
Task.Execute
e.Data.Add, Task.OUTPUT_RASTER
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
Syntax
Result = ENVITask('TwoColorMultiview ')
Input parameters (Set, Get): INPUT_RASTER1, INPUT_RASTER2, OUTPUT_RASTER_URI
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_RASTER1 (required)
Specify a single-band raster representing the earliest time.
INPUT_RASTER2 (required)
Specify a single-band raster representing the latest time.
OUTPUT_RASTER_URI (optional)
Specify a string with the fully qualified filename and path to export the associated OUTPUT_RASTER.
- If you set this parameter to an asterisk symbol (*), the output raster will be virtual and not written to disk.
- If you do not specify this parameter, or set it to an exclamation symbol (!), a temporary file will be created.
- 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.
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
See Also
ENVITask