1 | ;------------------------------------------------------------ |
---|
2 | ;------------------------------------------------------------ |
---|
3 | ;------------------------------------------------------------ |
---|
4 | ;+ |
---|
5 | ; @file_comments gives fictype ('DA' 'MO' 'AN' 'SE' 'EX') corresponding |
---|
6 | ; to the given date in vairmer format ( yymmdd ) |
---|
7 | ; @uses common.pro |
---|
8 | ; |
---|
9 | ; @examples |
---|
10 | ; IDL> fictype = fictype(930124) |
---|
11 | ; |
---|
12 | ; @history Jerome Vialard (jv\@lodyc.jussieu.fr) |
---|
13 | ; 2/7/98 |
---|
14 | ;- |
---|
15 | ;------------------------------------------------------------ |
---|
16 | ;------------------------------------------------------------ |
---|
17 | ;------------------------------------------------------------ |
---|
18 | function fictype, vdate, dim |
---|
19 | ; |
---|
20 | compile_opt idl2, strictarrsubs, obsolete |
---|
21 | ; |
---|
22 | @common |
---|
23 | ;------------------------------------------------------------ |
---|
24 | ; constitution de l'adresse ou aller chercher le fichier |
---|
25 | ;-------------------------------------------------------------- |
---|
26 | ; date yymmdd = vdate |
---|
27 | jul = juldate(vdate) |
---|
28 | ; |
---|
29 | case 1 of |
---|
30 | (year eq 0) and (month eq 0) : return, 'EX' |
---|
31 | (year eq 0) and (month ne 0) and (day eq 0) : return, 'SE' |
---|
32 | (year ne 0) and (month eq 0) : return, 'AN' |
---|
33 | (year ne 0) and (day eq 0) : return, 'MO' |
---|
34 | else : return, 'DA' |
---|
35 | endcase |
---|
36 | ; |
---|
37 | ;------------------------------------------------------------ |
---|
38 | fini: |
---|
39 | ; |
---|
40 | return, -1 |
---|
41 | end |
---|
42 | ;------------------------------------------------------------ |
---|