Changeset 297 for trunk/SRC/Calendar


Ignore:
Timestamp:
09/25/07 17:09:12 (17 years ago)
Author:
pinsard
Message:

typo

File:
1 edited

Legend:

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

    r292 r297  
    1111; Calendar 
    1212; 
    13 ; @param MONTH {in}{required} {type=scalar (integer or double) or array of scalars} 
     13; @param MONTH {in}{optional} {type=scalar (integer or double) or array of scalars} 
    1414; Number of the desired month (1 = January, ..., 12 = December). 
    1515; 
    16 ; @param DAY {in}{required} {type=scalar (integer or double) or array of scalars} 
     16; @param DAY {in}{optional} {type=scalar (integer or double) or array of scalars} 
    1717; Number of day of the month. 
    1818; 
    19 ; @param YEARin {in}{required} {type=scalar (integer or double) or array of scalars} 
     19; @param YEARin {in}{optional} {type=scalar (integer or double) or array of scalars} 
    2020; Number of the desired year.Year parameters must be valid 
    2121; values from the civil calendar.  Years B.C.E. are represented 
     
    9393  IF n_elements(key_caltype) EQ 0 THEN key_caltype = 'greg' 
    9494  if keyword_set(ndayspm) then key_caltype = '360d' 
     95   
     96  NP = n_params() 
     97; Process the input, if all are missing, use today's date. 
     98  IF (np EQ 0) THEN RETURN, SYSTIME(/JULIAN) 
     99  IF (np LT 3) THEN ras = report('Incorrect number of arguments.') 
    95100; 
    96101  YEAR = long(yearin) 
    97102  zero = where(year EQ 0, cnt) 
    98103  IF cnt NE 0 THEN YEAR[zero] = 654321L 
    99    
    100   NP = n_params() 
    101 ; Process the input, if all are missing, use todays date. 
    102   IF (np EQ 0) THEN RETURN, SYSTIME(/JULIAN) 
    103   IF (np LT 3) THEN ras = report('Incorrect number of arguments.') 
    104104; 
    105105  CASE key_caltype OF 
Note: See TracChangeset for help on using the changeset viewer.