GetEnviInfo

Declaration: GetEnviInfo(FName: string; var SizeX, SizeY, SizeL: integer; var Description: string): integer;
Retrieves the most important parameters of an ENVI formatted data file. The parameter FName specifies the file name of the ENVI file. The variable parameters SizeX, SizeY and SizeL are filled with the number of pixels in x- and y-direction, and the number of layers, respectively. The variable parameter Description returns the description line in the ENVI header file.

The function returns the following error codes:

 0 ... everything is OK, variable parameters are filled in accordingly
-1 ... the file does not exist
-2 ... the file is not an envi header file
-3 ... the time stamp specification does not conform to the expected format
-4 ... unrecognized file type