source: trunk/ToBeReviewed/LECTURE/GRIB/read_grib_is.pro @ 67

Last change on this file since 67 was 67, checked in by pinsard, 18 years ago

miscellaneous modifications according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/

  • Property svn:executable set to *
File size: 457 bytes
Line 
1FUNCTION read_grib_is, num, offset
2
3  infofile = fstat(num)
4
5  a = assoc(num, bytarr(4, /nozero), offset)
6  typefile = string(a[0])
7  IF  typefile NE 'GRIB' THEN stop
8 
9;
10  a = assoc(num, bytarr(1, /nozero), offset+4)
11  sizerecord = bit2int([binary(a[0]), binary(a[1]), binary(a[2])])
12
13  a = assoc(num, bytarr(1, /nozero), offset+7)
14  gribed = a[0]
15  IF gribed NE 1 THEN stop
16;
17  RETURN, {typefile:typefile, sizerecord:sizerecord, gribed:gribed[0]}
18END
Note: See TracBrowser for help on using the repository browser.