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:
931 bytes
|
Line | |
---|
1 | FUNCTION read_grib_pds, num, recstart |
---|
2 | ; |
---|
3 | offset = recstart+8 |
---|
4 | a = assoc(num, bytarr(1, /nozero), offset-1) |
---|
5 | ; |
---|
6 | sizepds = bit2int([binary(a[1]), binary(a[2]), binary(a[3])]) |
---|
7 | ; |
---|
8 | paramtableversion = (a[4])[0] |
---|
9 | ; |
---|
10 | centerid = (a[5])[0] |
---|
11 | ; |
---|
12 | procid = (a[6])[0] |
---|
13 | ; |
---|
14 | gridid = (a[7])[0] |
---|
15 | ; |
---|
16 | flag = binary(a[8]) |
---|
17 | gdsnotomitted = flag[0] |
---|
18 | bmsnotomitted = flag[1] |
---|
19 | ; |
---|
20 | paramunitid = (a[9])[0] |
---|
21 | ; |
---|
22 | levtype = (a[10])[0] |
---|
23 | levalue1 = (a[11])[0] |
---|
24 | levalue2 = (a[12])[0] |
---|
25 | ; |
---|
26 | year = (a[13])[0] |
---|
27 | month = (a[14])[0] |
---|
28 | day = (a[15])[0] |
---|
29 | hour = (a[16])[0] |
---|
30 | minute = (a[17])[0] |
---|
31 | timeunit = (a[18])[0] |
---|
32 | p1 = (a[19])[0] |
---|
33 | p2 = (a[20])[0] |
---|
34 | timerange = (a[21])[0] |
---|
35 | n1 = (a[22])[0] |
---|
36 | n2 = (a[23])[0] |
---|
37 | nbmiss = (a[24])[0] |
---|
38 | century = (a[25])[0] |
---|
39 | ; |
---|
40 | subcenterid = (a[26])[0] |
---|
41 | ; |
---|
42 | d = bit2int([binary(a[27]), binary(a[28])], /checkneg) |
---|
43 | ;......... |
---|
44 | |
---|
45 | |
---|
46 | RETURN, {size:sizepds, gdsnotomitted:gdsnotomitted, bmsnotomitted:bmsnotomitted, d:d} |
---|
47 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.