ENVI Classic files may conform to a range of different file types. This function returns a file type descriptor. All ENVI Classic files that require a special display or input processing have a unique file type (meta file, virtual mosaic, classification, spectral library, FFT result). Any external file that requires an input read procedure also has a designated file type.

Syntax


Result = ENVI_FILE_TYPE(File_type)

Arguments


File_type

File_type can be either an integer or a string.

If File_type is an integer, the function returns the string-format description of the file type returned by ENVI_FILE_QUERY.

If File_type is a string, the function returns an arbitrarily assigned integer to use in procedures such as ENVI_SETUP_HEAD or ENVI_ENTER_DATA.

The file types and string descriptors are found in the following table. File_type string descriptors are case-sensitive and may contain spaces.

File Type

String Descriptor

ENVI Standard

ENVI Standard

ENVI Meta File

ENVI Meta File

ENVI Virtual Mosaic

ENVI Virtual Mosaic

ENVI Classification

ENVI Classification

ENVI Spectral Library

ENVI Spectral Library

ENVI FFT Result

ENVI FFT

Australian Centre for Remote Sensing CEOS

ACRES CEOS

ARC Digitized Raster Graphics

ADRG

AVHRR LAC/HRPT, GAC data

AVHRR CD

BMP

BMP

CEOS Generic

CEOS Generic

Envisat

ENVISAT

ERDAS 8.X

ERDAS 8.X

ERDAS IMAGINE

ERDAS IMAGINE

European Space Agency Landsat TM

ESA Landsat TM

ESA SHARP

ESA SHARP

Esri GRID

Esri GRID

HDF EOS ASTER

HDF EOS ASTER

HDF EOS MODIS

HDF EOS MODIS

HDF Landsat

HDF Landsat

HDF MODIS Simulator

HDF Modis Simulator

HDF Scientific Data and Raster

HDF SD

HDF SeaWiFS

HDF SeaWiFS

JPEG2000

JPEG2000

Multi-Resolution Seamless Image Database

MrSID

National Imagery Transmission Format

NITF

National Landsat Archive Production System CD

NLAPS CD

NOAA DMSP

NOAA DMSP

PCI

PCI

Planetary Data System Image

PDS Image

RADARSAT

RADARSAT

SPOT CD

SPOT CD

TIFF and GeoTIFF

TIFF

Tiled QuickBird

Tiled QB

Tiled WorldView

Tiled WV

TFRD

TFRD

ENVI Zoom

Zoom

Examples


The following example prints the file-type string of the file associated with the file ID. The first command stores the integer file-type descriptor in the variable file_type:

ENVI_FILE_QUERY, fid, file_type=file_type

The next line stores the string file type descriptor in the variable TYPE_STRING:

type_string = ENVI_FILE_TYPE(file_type)
print, type_string

The next example enters the array DATA into ENVI Classic and sets the file type to SPOT data. The first line gets the integer file type for SPOT data. The second line enters the array.

file_type = ENVI_FILE_TYPE('SPOT CD')
ENVI_ENTER_DATA, DATA, file_type=file_type

API Version


4.3