Last change
on this file since 157 was
157,
checked in by navarro, 18 years ago
|
header improvements + xxx doc
|
-
Property svn:keywords set to
Id
|
File size:
673 bytes
|
Line | |
---|
1 | ;+ |
---|
2 | ; @file_comments |
---|
3 | ; |
---|
4 | ; |
---|
5 | ; @categories |
---|
6 | ; |
---|
7 | ; |
---|
8 | ; @param NUM |
---|
9 | ; |
---|
10 | ; |
---|
11 | ; @param OFFSET |
---|
12 | ; |
---|
13 | ; |
---|
14 | ; @returns |
---|
15 | ; |
---|
16 | ; |
---|
17 | ; @restrictions |
---|
18 | ; |
---|
19 | ; |
---|
20 | ; @examples |
---|
21 | ; |
---|
22 | ; |
---|
23 | ; @history |
---|
24 | ; |
---|
25 | ; |
---|
26 | ; @version |
---|
27 | ; $Id$ |
---|
28 | ;- |
---|
29 | FUNCTION read_grib_is, num, offset |
---|
30 | ; |
---|
31 | compile_opt idl2, strictarrsubs |
---|
32 | ; |
---|
33 | |
---|
34 | infofile = fstat(num) |
---|
35 | |
---|
36 | a = assoc(num, bytarr(4, /nozero), offset) |
---|
37 | typefile = string(a[0]) |
---|
38 | IF typefile NE 'GRIB' THEN stop |
---|
39 | |
---|
40 | ; |
---|
41 | a = assoc(num, bytarr(1, /nozero), offset+4) |
---|
42 | sizerecord = bit2int([binary(a[0]), binary(a[1]), binary(a[2])]) |
---|
43 | ; |
---|
44 | a = assoc(num, bytarr(1, /nozero), offset+7) |
---|
45 | gribed = a[0] |
---|
46 | IF gribed NE 1 THEN stop |
---|
47 | ; |
---|
48 | RETURN, {typefile:typefile, sizerecord:sizerecord, gribed:gribed[0]} |
---|
49 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.