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

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: 345 bytes
Line 
1FUNCTION scan_grib_messize, num, recstart
2;
3;
4  compile_opt idl2, strictarrsubs
5;
6  nrec =  n_elements(recstart)
7  messize = lonarr(nrec)
8;
9  FOR i = 0L,nrec-1 DO BEGIN
10    offset = recstart[i]
11    a = assoc(num, bytarr(1, /nozero), offset+4)
12    messize[i] = bit2int([binary(a[0]), binary(a[1]), binary(a[2])])
13  ENDFOR
14;
15  RETURN, messize
16END
Note: See TracBrowser for help on using the repository browser.