source: trunk/SRC/ToBeReviewed/LECTURE/GRIB/scan_grib_code.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: 443 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_code, num, recstart
22;
23  compile_opt idl2, strictarrsubs
24;
25  nrec =  n_elements(recstart)
26  codes = bytarr(nrec)
27;
28  FOR i = 0L,nrec-1 DO BEGIN
29    offset = recstart[i]
30    a = assoc(num, bytarr(1, /nozero), offset+8+9-1)
31    codes[i] = a[0]
32  ENDFOR
33;
34  RETURN, codes
35END
Note: See TracBrowser for help on using the repository browser.