Last change
on this file since 372 was
371,
checked in by pinsard, 16 years ago
|
improvements of headers (alignments of IDL prompt in examples)
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | ;+ |
---|
2 | ; |
---|
3 | ; @file_comments |
---|
4 | ; gives fictype ('DA' 'MO' 'AN' 'SE' 'EX') corresponding |
---|
5 | ; to the given date in vairmer format ( yymmdd ) |
---|
6 | ; |
---|
7 | ; @param vdate {in}{required} |
---|
8 | ; |
---|
9 | ; @param dim |
---|
10 | ; unused |
---|
11 | ; |
---|
12 | ; @uses |
---|
13 | ; <pro>common</pro> |
---|
14 | ; |
---|
15 | ; @examples |
---|
16 | ; |
---|
17 | ; IDL> fictype = fictype(930124) |
---|
18 | ; |
---|
19 | ; @history |
---|
20 | ; Jerome Vialard (jv\@lodyc.jussieu.fr) |
---|
21 | ; 2/7/98 |
---|
22 | ; |
---|
23 | ; @version |
---|
24 | ; $Id$ |
---|
25 | ; |
---|
26 | ;- |
---|
27 | function fictype, vdate, dim |
---|
28 | ; |
---|
29 | compile_opt idl2, strictarrsubs, obsolete |
---|
30 | ; |
---|
31 | @common |
---|
32 | ;------------------------------------------------------------ |
---|
33 | ; constitution de l'adresse ou aller chercher le fichier |
---|
34 | ;-------------------------------------------------------------- |
---|
35 | ; date yymmdd = vdate |
---|
36 | jul = juldate(vdate) |
---|
37 | ; |
---|
38 | case 1 of |
---|
39 | (year eq 0) and (month eq 0) : return, 'EX' |
---|
40 | (year eq 0) and (month ne 0) and (day eq 0) : return, 'SE' |
---|
41 | (year ne 0) and (month eq 0) : return, 'AN' |
---|
42 | (year ne 0) and (day eq 0) : return, 'MO' |
---|
43 | else : return, 'DA' |
---|
44 | endcase |
---|
45 | ; |
---|
46 | ;------------------------------------------------------------ |
---|
47 | fini: |
---|
48 | ; |
---|
49 | return, -1 |
---|
50 | end |
---|
51 | ;------------------------------------------------------------ |
---|
Note: See
TracBrowser
for help on using the repository browser.