Ignore:
Timestamp:
03/19/07 18:15:51 (17 years ago)
Author:
pinsard
Message:

improvements/corrections of some *.pro headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Calendar/caldat.pro

    r205 r231  
    33; @file_comments 
    44; Return the calendar date and time given julian date. 
    5 ; This is the inverse of the function JULDAY. 
    6 ; 3 calendars are available according to the value of key_caltype  
     5; This is the inverse of the function 
     6; <pro>julday</pro>. 
     7; 3 calendars are available according to the value of key_caltype 
    78; (variable of the common file cm_4cal): 'greg', '360d', 'noleap' 
    89; 
    910; @categories Calendar 
    1011; 
    11 ; @param JULIAN {in}{required}  
     12; @param JULIAN {in}{required} {type=long integer} 
    1213; contains the Julian Day Number (which begins at noon) of the 
    13 ; specified calendar date.  It should be a long integer. 
    14 ; 
    15 ; @param MONTH {out}  
     14; specified calendar date. 
     15; 
     16; @param MONTH {out} {type=integer} 
    1617; Number of the desired month (1 = January, ..., 12 = December). 
    1718; 
    18 ; @param DAY {out}  
     19; @param DAY {out} {type=integer} 
    1920; Number of day of the month. 
    2021; 
    21 ; @param YEAR {out}  
     22; @param YEAR {out} {type=integer} 
    2223; Number of the desired year. 
    2324; 
    24 ; @param HOUR {out}  
     25; @param HOUR {out} {type=integer} 
    2526; Hour of the day 
    2627; 
    27 ; @param Minute {out}  
     28; @param Minute {out} {type=integer} 
    2829; Minute of the day 
    2930; 
    30 ; @param Second {out}  
     31; @param Second {out} {type=float} 
    3132; Second (and fractions) of the day. 
    3233; 
    33 ; @keyword NDAYSPM {default=30}  
    34 ; To use a calendar with fixed number of days per months. 
     34; @keyword NDAYSPM {type=integer} {default=30} 
     35; To use a calendar with fixed number of days per month. 
    3536; see also the use of key_caltype (variable of the common file cm_4cal) 
    3637; 
    3738; @uses cm_4cal 
    3839; 
    39 ; @restrictions  
    40 ; Accuracy using IEEE double precision numbers is approximately 1/10000th of a  
     40; @restrictions 
     41; Accuracy using IEEE double precision numbers is approximately 1/10000th of a 
    4142; second. 
    4243; 
    43 ; @history  
     44; @history 
    4445; Translated from "Numerical Recipies in C", by William H. Press, 
    4546; Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling. 
     
    5556; AB, 3 January 2000, Make seconds output as DOUBLE in array output. 
    5657; 
    57 ; Sebastien Masson, May 2006, add different calendat with key_caltype  
     58; Sebastien Masson, May 2006, add different calendar with key_caltype 
    5859; (variable of the common file cm_4cal) 
    5960; 
    60 ; @version $Id$ 
     61; @version 
     62; $Id$ 
    6163;- 
     64; 
    6265pro caldat, julian, month, day, year, hour, minute, second, NDAYSPM = ndayspm 
    63 ;------------------------------------------------------------ 
     66; 
    6467@cm_4cal 
    65 ;------------------------------------------------------------ 
    66   COMPILE_OPT idl2 
     68; 
     69  compile_opt idl2, strictarrsubs 
    6770 
    6871  ON_ERROR, 2                   ; Return to caller if errors 
     
    112115      year = year - (year LE 0) 
    113116 
    114     END  
     117    END 
    115118    '360d':BEGIN 
    116   
     119 
    117120      IF keyword_set(ndayspm) THEN BEGIN 
    118121        IF ndayspm EQ 1 THEN ndayspm = 30 
     
    137140      neg = where(year LT 0) 
    138141      IF neg[0] NE -1 THEN year[neg] = year[neg]-1 
    139     END  
     142    END 
    140143    'noleap':BEGIN 
    141144 
     
    150153              + (day GT 273) + (day GT 304) + (day GT 334) 
    151154      month = long(month) 
    152 ;  
     155; 
    153156      day = day - 31L * (day GT 31) - 28L * (day GT 59) - 31L * (day GT 90) $ 
    154157              - 30L * (day GT 120) - 31L * (day GT 151) - 30L * (day GT 181) $ 
     
    160163        month[zero] = 12L 
    161164        day[zero] = 31L 
    162       ENDIF  
    163 ; 
    164     END  
     165      ENDIF 
     166; 
     167    END 
    165168    ELSE:BEGIN 
    166169      ng = report('only 3 types of calendar are accepted: greg, 360d and noleap') 
     
    180183    second = (TEMPORARY(fraction) - minute/1440d) * 86400d 
    181184  ENDIF 
    182    
     185 
    183186; if julian is an array, reform all output to correct dimensions 
    184187  IF (SIZE(julian, /N_DIMENSION) GT 0) THEN BEGIN 
Note: See TracChangeset for help on using the changeset viewer.