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

Last change on this file was 495, checked in by pinsard, 10 years ago

fix thanks to coding rules; typo; dupe empty lines; trailing blanks

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