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


; Start the application
e = ENVI()
 
; Open an input file
File = Filepath('qb_boulder_pan', Subdir=['data'], Root_Dir=e.Root_Dir)
Raster1 = e.OpenRaster(File)
 
; Create a duplicate raster of the same area with some pixels
; increasing in value and others decreasing.
expression = '(b1*(b1 gt 700))^1.4 - (b1*(b1 le 300))^1.8'
Raster2 = ENVIPixelwiseBandMathRaster(Raster1, expression)
 
; Get the task from the catalog of ENVITasks
Task = ENVITask('TwoColorMultiview')
 
; Define inputs
Task.INPUT_RASTER1 = Raster1
Task.INPUT_RASTER2 = Raster2
 
; Run the task
Task.Execute
 
; Add the output to the Data Manager
e.Data.Add, Task.OUTPUT_RASTER
 
; Display the result
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


ENVI 6.2

Introduced

See Also


ENVITask