ENVITime
This is a reference to a time object.
Example
The following code sets the acquisition time for a raster dataset and creates an ENVITime object with the time information. Copy and paste the following code into the IDL command line.
e = ENVI(/HEADLESS)
file = FILEPATH('qb_boulder_msi', ROOT_DIR = e.ROOT_DIR, $
SUBDIRECTORY = ['data'])
timeStr = '2001-01-01T00:30:45.321Z'
timeObj = ENVITime(ACQUISITION = timeStr)
raster = e.OpenRaster(file, TIME_OVERRIDE = timeObj)
PRINT, raster.time.acquisition
Methods
Dehydrate
Hydrate
Properties
Properties marked as (Get) can be retrieved, but not set.
ACQUISITION (Get)
This property contains a string with information about the raster's acquisition time. See The ENVI Header Format for details of how this string is formatted.
Version History
|
ENVI 5, Service Pack 2
|
Introduced
|
|
ENVI 5.3, Service Pack 1
|
Added Dehydrate method
|
|
ENVI 5.4
|
Added Hydrate method
|
API Version
3.3
See Also
ENVIRaster, ENVI::OpenRaster, ENVIRaster::WriteMetadata