Help for FORM
"form" opens an input file and returns the data format, NB, NL, and NS
as output parameters.
The following procedure is an example of its use to obtain the
format of a given image file:
PROCEDURE
LOCAL FORMAT TYPE=KEYWORD
LOCAL NL TYPE=INTEGER
LOCAL NS TYPE=INTEGER
LOCAL NB TYPE=INTEGER
BODY
form FILE_NAME FORMAT NL NS
write "FORMAT="&FORMAT
write "NL=&NL"
write "NS=&NS"
write "NB=&NB"
END-PROC
HISTORY:
WRITTEN BY: Ray Stagner 03/05/85
CHANGES:
13-AUG-1990 --LWK-- added NB keyword.
2-JAN-1995 --AS--- (CRI) Made portable for UNIX
COGNIZANT PROGRAMMER: L.W.Kamp
PARAMETERS:
INP
Input file name
FORMAT
Format of INP.
(output)
NL
Number of lines in INP.
(output)
NS
Number of samples per line
in INP. (output)
NB
Number of bands in INP.
(output)
.END
See Examples:
Cognizant Programmer: