Ignore:
Timestamp:
03/16/07 10:22:26 (17 years ago)
Author:
pinsard
Message:

corrections of some misspellings in some *.pro

File:
1 edited

Legend:

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

    r205 r226  
    44; Calculate the Julian Day Number for a given month, day, and year. 
    55; This is the inverse of the library function CALDAT. 
    6 ; 3 calendars are available according to the value of key_caltype  
     6; 3 calendars are available according to the value of key_caltype 
    77; (variable of the common file cm_4cal): 'greg', '360d', 'noleap' 
    88; 
    99; @categories Calendar 
    1010; 
    11 ; @param MONTH {in}{required}  
    12 ; Number of the desired month (1 = January, ..., 12 = December).  
     11; @param MONTH {in}{required} 
     12; Number of the desired month (1 = January, ..., 12 = December). 
    1313; Can be scalar or array 
    1414; 
    15 ; @param DAY {in}{required}  
     15; @param DAY {in}{required} 
    1616; Number of day of the month.Can be scalar or array 
    1717; 
    18 ; @param YEARin {in}{required}   
     18; @param YEARin {in}{required} 
    1919; Number of the desired year.Year parameters must be valid 
    2020; values from the civil calendar.  Years B.C.E. are represented 
     
    2222; as positive integers. In particular, note that there is no 
    2323; year 0 in the civil calendar.  1 B.C.E. (-1) is followed by 
    24 ; 1 C.E. (1).  
    25 ; Change: However for climatological year, we do accept the year  
     24; 1 C.E. (1). 
     25; Change: However for climatological year, we do accept the year 
    2626; O but we change it for year 654321L (the same trick is done in 
    2727; caldat so caldat, julday(1,1,0) gives you back Jan 1st of year 0) 
    2828; Can be scalar or array 
    2929; 
    30 ; @param HOUR {in}{optional}{default=12}  
     30; @param HOUR {in}{optional}{default=12} 
    3131; Number of the hour of the day. Can be scalar or array 
    3232; 
     
    3737; Number of the second of the minute. Can be scalar or array 
    3838; 
    39 ; @restrictions  
     39; @restrictions 
    4040; The Result will have the same dimensions as the smallest array, or 
    4141; will be a scalar if all arguments are scalars. 
    42 ;  
    43 ; @keyword NDAYSPM {default=30}  
     42; 
     43; @keyword NDAYSPM {default=30} 
    4444; To use a calendar with fixed number of days per months. 
    4545; see also the use of key_caltype (variable of the common file cm_4cal) 
    4646; 
    47 ; @returns  
     47; @returns 
    4848; the Julian Day Number (which begins at noon) of the specified calendar date. 
    49 ; If Hour, Minute, and Second are not specified, then the result will be a  
    50 ; long integer, otherwise the result is a double precision floating point  
     49; If Hour, Minute, and Second are not specified, then the result will be a 
     50; long integer, otherwise the result is a double precision floating point 
    5151; number. 
    5252; 
    5353; @uses cm_4cal 
    5454; 
    55 ; @restrictions  
     55; @restrictions 
    5656; Accuracy using IEEE double precision numbers is approximately 
    5757; 1/10000th of a second, with higher accuracy for smaller (earlier) 
    5858; Julian dates. 
    5959; 
    60 ; @history  
     60; @history 
    6161; Translated from "Numerical Recipies in C", by William H. Press, 
    6262; Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling. 
     
    7575; eg. julday(349,1,1970) 
    7676; 
    77 ; Sebastien Masson, May 2006, add diferent calendat with key_caltype  
     77; Sebastien Masson, May 2006, add different calendat with key_caltype 
    7878; (variable of the common file cm_4cal) 
    7979; 
    80 ; @version $Id$ 
     80; @version 
     81; $Id$ 
    8182;- 
    8283; 
     
    224225      RETURN, jul 
    225226 
    226     END  
     227    END 
    227228    '360d':BEGIN 
    228229; 
     
    240241      IF neg[0] NE -1 THEN L_YEAR[neg] =  L_YEAR[neg]+1 
    241242 
    242       JUL = ((L_YEAR-1)*12 + (L_MONTH-1))* ndayspm + L_DAY  
     243      JUL = ((L_YEAR-1)*12 + (L_MONTH-1))* ndayspm + L_DAY 
    243244      if n_elements(Hour) + n_elements(Minute) + n_elements(Second) eq 0 then $ 
    244245        return, JUL 
     
    246247      if n_elements(Minute) eq 0 then Minute = 0 
    247248      if n_elements(Second) eq 0 then Second = 0 
    248        
     249 
    249250      IF total([hour NE 12, minute NE 0, second NE 0]) EQ 0 THEN return, JUL ELSE $ 
    250251        return, JUL + (Hour / 24.0d0 - 0.5d) + (Minute/1440.0d0) + (Second / 86400.0d0) 
    251252 
    252     END  
     253    END 
    253254    'noleap':BEGIN 
    254255 
     
    279280      if n_elements(Minute) eq 0 then Minute = 0 
    280281      if n_elements(Second) eq 0 then Second = 0 
    281        
     282 
    282283        IF total([hour NE 12, minute NE 0, second NE 0]) EQ 0 THEN return, JUL ELSE $ 
    283284        return, JUL + (Hour / 24.0d0 - 0.5d) + (Minute/1440.0d0) + (Second / 86400.0d0) 
    284285 
    285     END  
     286    END 
    286287    ELSE:return, report('only 3 types of calendar are accepted: greg, 360d and noleap') 
    287288  ENDCASE 
Note: See TracChangeset for help on using the changeset viewer.