This is a reference to an ENVIDataCollection object, which is a collection of data objects currently available in the Data Manager.
The advantage of adding an object (dataset) to the Data Manager is that it will persist throughout the ENVI session. If you close ENVI, the Data Manager closes the relevant files and cleans up object references. Also, if you have a script that runs an interactive session of ENVI (but does not close it), the object will be available for use even after the script ends.
The following always add to the Data Manager:
The following objects do not add to the Data Manager. You can add them if needed by using the ENVIDataCollection::Add method.
Use the Data property of the ENVI function to create an ENVIDataCollection object:
Result = e.Data
Example
e = ENVI()
File = Filepath('qb_boulder_msi', Root_Dir=e.Root_Dir, $
Subdir = ['data'])
Raster = e.OpenRaster(File)
Vect = Filepath('qb_boulder_msi_vectors.shp', $
Root_Dir=e.Root_Dir, Subdir = ['data'])
Vector = e.OpenVector(Vect)
DataColl = e.Data
DataItems = DataColl.Get()
FOREACH Item, DataItems DO PRINT, Item
Methods
Add
Count
Get
Remove
Properties
None
Version History
API Version
4.3
See Also
ENVI, ENVIUI::SelectInputData