source: trunk/SRC/ToBeReviewed/LECTURE/GRIB/scan_grib_messize.pro @ 325

Last change on this file since 325 was 325, checked in by pinsard, 16 years ago

modification of some headers (+some corrections) to prepare usage of the new idldoc

  • Property svn:keywords set to Id
File size: 525 bytes
Line 
1;+
2; @file_comments
3;
4;
5; @categories
6;
7;
8; @param NUM
9;
10;
11; @param RECSTART
12;
13;
14; @returns
15;
16;
17; @restrictions
18;
19;
20; @examples
21;
22;
23; @history
24;
25;
26; @version
27; $Id$
28;-
29FUNCTION scan_grib_messize, num, recstart
30;
31;
32  compile_opt idl2, strictarrsubs
33;
34  nrec =  n_elements(recstart)
35  messize = lonarr(nrec)
36;
37  FOR i = 0L,nrec-1 DO BEGIN
38    offset = recstart[i]
39    a = assoc(num, bytarr(1, /nozero), offset+4)
40    messize[i] = bit2int([binary(a[0]), binary(a[1]), binary(a[2])])
41  ENDFOR
42;
43  RETURN, messize
44END
Note: See TracBrowser for help on using the repository browser.