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

Last change on this file since 371 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
RevLine 
[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
[370]13; <pro>common</pro>
[2]14;
[103]15; @examples
[2]16;
[371]17;   IDL> fictype = fictype(930124)
[370]18;
[238]19; @history
[232]20; Jerome Vialard  (jv\@lodyc.jussieu.fr)
[97]21; 2/7/98
[118]22;
[238]23; @version
[232]24; $Id$
[118]25;
[2]26;-
27function fictype, vdate, dim
[114]28;
29  compile_opt idl2, strictarrsubs, obsolete
30;
[2]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.