source: trunk/SRC/Obsolete/fictype.pro @ 134

Last change on this file since 134 was 134, checked in by navarro, 18 years ago

change *.pro file properties (del eof-style, del executable, set keywords Id

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;+
5; @file_comments
6; gives fictype ('DA' 'MO' 'AN' 'SE' 'EX') corresponding
7; to the given date in vairmer format ( yymmdd )
8;
9; @param vdate {in}{required}
10;
11; @param dim unused
12;
13; @uses common.pro
14;
15; @examples
16; IDL> fictype = fictype(930124)
17;
18; @history Jerome Vialard  (jv\@lodyc.jussieu.fr)
19; 2/7/98
20;
21; @version $Id$
22;
23;-
24;------------------------------------------------------------
25;------------------------------------------------------------
26;------------------------------------------------------------
27function 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
50end
51;------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.