NAME
USAGE
kind = wkoffit(filename)
example:
integer kind,wkoffit
external wkoffit
kind = wkoffit('/data/somedirectory/datafile')
DESCRIPTION
Wkoffit reads the first few bytes of the file and tries to determine the type. Upon completion, wkoffit returns a integer code corresponding to the file type it has recognized. If the file type is unknown or the file is empty or non existent, a negative code will be returned. Note that the file does not have to be pre opened. Here is a list of the possible returned code:
-3: file does not exist
-2: empty file
-1: unknown file type
1: RPN standard random 1989
2: RPN standard sequential 1989
3: RPN standard sequential FORTRAN 1989
4: CCRN
5: CCRN-RPN
6: BURP
7: GRIB
8: BUFR
9: BLOK
10: FORTRAN binary
11: COMPRESS
12: GIF89
13: GIF87
14: IRIS
15: JPG
16: KMW
17: PBM
18: PCL
19: PCX
20: PDSVICAR
21: PM
22: PPM
23: PS
24: KMW_
25: RRBX
26: SUNRAS
27: TIFF
28: UTAHRLE
29: XBM
30: XWD
31: ASCII
32: BMP
33: RPN standard random 1998
34: RPN standard sequential 1998
ARGUMENT
Name of the file to analyzed (character string, max 256 characters).
AUTHORS
Mario Lépine, Vanh Souvanlasy , Eric Michaud
NOTES
Do not forget to declare wkoffit as an integer function, otherwise a 0 value will always be returned (which is not a valid returned code for wkoffit).
SEE ALSO
( r.filetype)