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