Changeset 133 for trunk/SRC/Calendar


Ignore:
Timestamp:
07/07/06 11:57:27 (18 years ago)
Author:
navarro
Message:

english and nicer header (1)

Location:
trunk/SRC/Calendar
Files:
2 moved

Legend:

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

    r132 r133  
    1 ; $Id$ 
     1;+ 
    22; 
    3 ; Copyright (c) 1992-2003, Research Systems, Inc.  All rights reserved. 
    4 ;       Unauthorized reproduction prohibited. 
    5 ; 
    6  
    7 ;+ 
    8 ; NAME: 
    9 ;       CALDAT 
    10 ; 
    11 ; PURPOSE: 
     3; @file_comments 
    124;       Return the calendar date and time given julian date. 
    135;       This is the inverse of the function JULDAY. 
    14 ; CATEGORY: 
    15 ;       Misc. 
     6;  
     7; @categories Calendar 
    168; 
    17 ; CALLING SEQUENCE: 
    18 ;       CALDAT, Julian, Month, Day, Year, Hour, Minute, Second 
    19 ;       See also: julday, the inverse of this function. 
    209; 
    21 ; INPUTS: 
    22 ;       JULIAN contains the Julian Day Number (which begins at noon) of the 
     10; @param JULIAN {in}{required} contains the Julian Day Number (which begins at noon) of the 
    2311;       specified calendar date.  It should be a long integer. 
    24 ; OUTPUTS: 
    25 ;       (Trailing parameters may be omitted if not required.) 
    26 ;       MONTH:  Number of the desired month (1 = January, ..., 12 = December). 
    2712; 
    28 ;       DAY:    Number of day of the month. 
     13; @param MONTH {out} Number of the desired month (1 = January, ..., 12 = December). 
    2914; 
    30 ;       YEAR:   Number of the desired year. 
     15; @param DAY {out} Number of day of the month. 
    3116; 
    32 ;       HOUR:   Hour of the day 
    33 ;       Minute: Minute of the day 
    34 ;       Second: Second (and fractions) of the day. 
     17; @param YEAR {out} Number of the desired year. 
    3518; 
    36 ; KEYWORD PARAMETERS: 
     19; @param HOUR {out} Hour of the day 
    3720; 
    38 ;       NDAYSPM: for using a calendar with fixed number of days per 
    39 ;                months. defaut value of NDAYSPM=30 
     21; @param Minute {out} Minute of the day 
    4022; 
    41 ; COMMON BLOCKS: cm_4cal 
     23; @param Second {out} Second (and fractions) of the day. 
    4224; 
    43 ; SIDE EFFECTS: 
    44 ;       None. 
    4525; 
    46 ; RESTRICTIONS: 
    47 ;       Accuracy using IEEE double precision numbers is approximately 
     26; @keyword NDAYSPM {default=30} for using a calendar with fixed number of days per 
     27;                months. 
     28; 
     29; @uses cm_4cal 
     30; 
     31; 
     32; @restrictions Accuracy using IEEE double precision numbers is approximately 
    4833;       1/10000th of a second. 
    4934; 
    50 ; MODIFICATION HISTORY: 
    51 ;       Translated from "Numerical Recipies in C", by William H. Press, 
     35; @history Translated from "Numerical Recipies in C", by William H. Press, 
    5236;       Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling. 
    5337;       Cambridge University Press, 1988 (second printing). 
     
    6145; 
    6246;       AB, 3 January 2000, Make seconds output as DOUBLE in array output. 
     47; 
     48; @version $Id$ 
    6349;- 
    64 ; 
    6550pro CALDAT, julian, month, day, year, hour, minute, second, NDAYSPM = ndayspm 
    6651;------------------------------------------------------------ 
  • trunk/SRC/Calendar/julday.pro

    r132 r133  
    1 ; $Id$ 
    2 ; 
    3 ; Copyright (c) 1988-2003, Research Systems, Inc.  All rights reserved. 
    4 ;       Unauthorized reproduction prohibited. 
    5  
    61;+ 
    7 ; NAME: 
    8 ;       JULDAY 
    9 ; 
    10 ; PURPOSE: 
    11 ;       Calculate the Julian Day Number for a given month, day, and year. 
     2; 
     3; @file_comments 
     4;       Calculate the Julian Day Number for a given month, day, and year. 
    125;       This is the inverse of the library function CALDAT. 
    136;       See also caldat, the inverse of this function. 
    147; 
    15 ; CATEGORY: 
    16 ;       Misc. 
    17 ; 
    18 ; CALLING SEQUENCE: 
    19 ;       Result = JULDAY([[[[Month, Day, Year], Hour], Minute], Second]) 
    20 ; 
    21 ; INPUTS: 
    22 ;       MONTH:  Number of the desired month (1 = January, ..., 12 = December). 
    23 ; 
    24 ;       DAY:    Number of day of the month. 
    25 ; 
    26 ;       YEAR:   Number of the desired year.Year parameters must be valid 
     8; @categories Calendar 
     9; 
     10; @param MONTH {in}{required} Number of the desired month (1 = January, ..., 12 = December). Can be scalar or array 
     11; 
     12; @param DAY {in}{required} Number of day of the month.Can be scalar or array 
     13; 
     14; @param YEAR {in}{required} Number of the desired year.Year parameters must be valid 
    2715;               values from the civil calendar.  Years B.C.E. are represented 
    2816;               as negative integers.  Years in the common era are represented 
    2917;               as positive integers.  In particular, note that there is no 
    3018;               year 0 in the civil calendar.  1 B.C.E. (-1) is followed by 
    31 ;               1 C.E. (1). 
    32 ; 
    33 ;       HOUR:   Number of the hour of the day. 
    34 ; 
    35 ;       MINUTE: Number of the minute of the hour. 
    36 ; 
    37 ;       SECOND: Number of the second of the minute. 
    38 ; 
    39 ;   Note: Month, Day, Year, Hour, Minute, and Second can all be arrays. 
    40 ;         The Result will have the same dimensions as the smallest array, or 
     19;               1 C.E. (1). Can be scalar or array 
     20; 
     21; @param HOUR {in}{optional} Number of the hour of the day. Can be scalar or array 
     22; 
     23; @param MINUTE {in}{optional} Number of the minute of the hour. Can be scalar or array 
     24; 
     25; @param SECOND {in}{optional} Number of the second of the minute. Can be scalar or array 
     26; 
     27; @restrictions The Result will have the same dimensions as the smallest array, or 
    4128;         will be a scalar if all arguments are scalars. 
    42 ; 
    43 ; OPTIONAL INPUT PARAMETERS: 
    44 ;       Hour, Minute, Second = optional time of day. 
    45 ; 
    46 ; KEYWORD PARAMETERS: 
    47 ; 
    48 ;       NDAYSPM: for using a calendar with fixed number of days per 
    49 ;                months. defaut value of NDAYSPM=30 
    50 ; 
    51 ; OUTPUTS: 
    52 ;       JULDAY returns the Julian Day Number (which begins at noon) of the 
     29;  
     30; 
     31; @keywords NDAYSPM {default=30} for using a calendar with fixed number of days per 
     32;                months. 
     33; 
     34; @ returns JULDAY: the Julian Day Number (which begins at noon) of the 
    5335;       specified calendar date.  If Hour, Minute, and Second are not specified, 
    5436;       then the result will be a long integer, otherwise the result is a 
    5537;       double precision floating point number. 
    5638; 
    57 ; COMMON BLOCKS: cm_4cal 
    58 ; 
    59 ; SIDE EFFECTS: 
    60 ;       None. 
    61 ; 
    62 ; RESTRICTIONS: 
    63 ;       Accuracy using IEEE double precision numbers is approximately 
     39; @uses cm_4cal 
     40; 
     41; @restrictions Accuracy using IEEE double precision numbers is approximately 
    6442;   1/10000th of a second, with higher accuracy for smaller (earlier) 
    6543;   Julian dates. 
    6644; 
    67 ; MODIFICATION HISTORY: 
    68 ;       Translated from "Numerical Recipies in C", by William H. Press, 
     45; @history Translated from "Numerical Recipies in C", by William H. Press, 
    6946;       Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling. 
    7047;       Cambridge University Press, 1988 (second printing). 
     
    8259; 
    8360;   CT, April 2000, Now accepts vectors or scalars. 
     61; 
     62; @version $Id$ 
    8463;- 
    8564; 
Note: See TracChangeset for help on using the changeset viewer.