Last change
on this file since 114 was
114,
checked in by smasson, 18 years ago
|
new compilation options (compile_opt idl2, strictarrsubs) in each routine
|
-
Property svn:executable set to
*
|
File size:
495 bytes
|
Rev | Line | |
---|
[67] | 1 | FUNCTION read_grib_is, num, offset |
---|
[114] | 2 | ; |
---|
| 3 | compile_opt idl2, strictarrsubs |
---|
| 4 | ; |
---|
[67] | 5 | |
---|
| 6 | infofile = fstat(num) |
---|
| 7 | |
---|
| 8 | a = assoc(num, bytarr(4, /nozero), offset) |
---|
| 9 | typefile = string(a[0]) |
---|
| 10 | IF typefile NE 'GRIB' THEN stop |
---|
| 11 | |
---|
| 12 | ; |
---|
| 13 | a = assoc(num, bytarr(1, /nozero), offset+4) |
---|
| 14 | sizerecord = bit2int([binary(a[0]), binary(a[1]), binary(a[2])]) |
---|
| 15 | ; |
---|
| 16 | a = assoc(num, bytarr(1, /nozero), offset+7) |
---|
| 17 | gribed = a[0] |
---|
| 18 | IF gribed NE 1 THEN stop |
---|
| 19 | ; |
---|
| 20 | RETURN, {typefile:typefile, sizerecord:sizerecord, gribed:gribed[0]} |
---|
| 21 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.