source: trunk/SRC/ToBeReviewed/LECTURE/GRIB/scan_grib_date.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: 333 bytes
Line 
1FUNCTION scan_grib_date, num, recstart
2;
3;
4  compile_opt idl2, strictarrsubs
5;
6  nrec =  n_elements(recstart)
7  dates = lonarr(nrec)
8;
9  FOR i = 0L,nrec-1 DO BEGIN
10    offset = recstart[i]
11    a = assoc(num, bytarr(1, /nozero), offset+8-1)
12    dates[i] = (a[13]+100L*(a[25]-1))*10000L+a[14]*100L+a[15]
13  ENDFOR
14;
15  RETURN, dates
16END
Note: See TracBrowser for help on using the repository browser.