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

Last change on this file since 262 was 262, checked in by pinsard, 17 years ago

corrections of some headers and parameters and keywords case. change of pro2href to replace proidl

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