This task searches and opens rasters in a given directory based on a match pattern.
Example
e = ENVI()
Dir = Filepath('', Root_Dir=e.Root_Dir, Subdir=['data'])
Task = ENVITask('FindRasters')
Task.DIRECTORY = Dir
Task.Execute
View = e.GetView()
foreach Raster, Task.OUTPUT_RASTERS do Layer = View.CreateLayer(Raster)
Syntax
Result = ENVITask('FindRasters')
Input parameters (Set, Get): DIRECTORY, IGNORE_ERRORS, INCLUDE_SUBFOLDERS, SEARCH_PATTERN
Output parameters (Get only): OUTPUT_RASTERS
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
DIRECTORY (required)
Specify the directory in which to find raster files.
IGNORE_ERRORS (optional)
Specify whether to ignore errors during opening, or to halt execution.
INCLUDE_SUBFOLDERS (optional)
Specify whether or not to include subdirectories in the search.
SEARCH_PATTERN (optional)
Specify an array of strings containing the patterns for files to match. The default is *.hdr, which will find all files in ENVI format.
Output Parameters
OUTPUT_RASTERS
The resulting rasters found.
Methods
Execute
Parameter
ParameterNames
Properties
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
TAGS
Version History
See Also
ENVITask, FindVectors Task