source: trunk/SRC/ToBeReviewed/LECTURE/GRIB/scan_grib_date.pro @ 134

Last change on this file since 134 was 134, checked in by navarro, 18 years ago

change *.pro file properties (del eof-style, del executable, set keywords Id

  • Property svn:keywords set to Id
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.