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

Last change on this file since 123 was 118, checked in by pinsard, 18 years ago

add $ in Calendar, Grid, Interpolation, Obsolete and Postscript *.pro files, add svn:keywords Id to all these files, some improvements in header

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
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;
8; @param vdate {in}{required}
9; @param dim unused
10;
11; @uses common.pro
12;
13; @examples
14; IDL> fictype = fictype(930124)
15;
16; @history Jerome Vialard  (jv\@lodyc.jussieu.fr)
17; 2/7/98
18;
19; @version $Id$
20;
21;-
22;------------------------------------------------------------
23;------------------------------------------------------------
24;------------------------------------------------------------
25function fictype, vdate, dim
26;
27  compile_opt idl2, strictarrsubs, obsolete
28;
29@common
30;------------------------------------------------------------
31;   constitution de l'adresse ou aller chercher le fichier
32;--------------------------------------------------------------
33; date yymmdd = vdate
34   jul = juldate(vdate)
35;
36   case 1 of
37      (year eq 0) and (month eq 0) : return, 'EX'
38      (year eq 0) and (month ne 0) and (day eq 0) : return, 'SE'
39      (year ne 0) and (month eq 0) : return, 'AN'
40      (year ne 0) and (day eq 0)   : return, 'MO'
41      else                         : return, 'DA'
42   endcase
43;
44;------------------------------------------------------------
45   fini:
46;
47   return, -1
48end
49;------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.