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:
493 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 | ;- |
---|
21 | FUNCTION scan_grib_date, num, recstart |
---|
22 | ; |
---|
23 | compile_opt idl2, strictarrsubs |
---|
24 | ; |
---|
25 | nrec = n_elements(recstart) |
---|
26 | dates = lonarr(nrec) |
---|
27 | ; |
---|
28 | FOR i = 0L,nrec-1 DO BEGIN |
---|
29 | offset = recstart[i] |
---|
30 | a = assoc(num, bytarr(1, /nozero), offset+8-1) |
---|
31 | dates[i] = (a[13]+ 100L *(a[25]-1)) * 10000L + a[14] * 100L + a[15] |
---|
32 | ENDFOR |
---|
33 | ; |
---|
34 | RETURN, dates |
---|
35 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.