Changeset 93 for trunk/SRC/Calendar


Ignore:
Timestamp:
06/07/06 19:12:14 (18 years ago)
Author:
pinsard
Message:

start to modify headers of Calendar and Utilities *.pro files for bet
ter idldoc output

Location:
trunk/SRC/Calendar
Files:
6 edited

Legend:

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

    r69 r93  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME: date2jul 
    65; 
    7 ; PURPOSE: gives julian day equivalent of a date in yyyymmdd format  
     6; gives julian day equivalent of a date in yyyymmdd format  
    87; 
    9 ; CATEGORY: calendar 
     8; @categories calendar 
    109; 
    11 ; CALLING SEQUENCE: jday = juldate(19930124) 
     10; @param date {in}{required} date in yyyymmdd format 
    1211; 
    13 ; INPUTS: date in yyyymmdd format 
    14 ; 
    15 ; KEYWORD PARAMETERS: 
    16 ; 
    17 ;       /GRADS: if  1 <= year <= 49 --> year = 2000 + year 
     12; @keyword /GRADS {in}{optional}  
     13;               if  1 <= year <= 49 --> year = 2000 + year 
    1814;               if 50 <= year <= 99 --> year = 1900 + year 
    1915; 
    20 ; OUTPUTS:date en jour julien 
     16; @returns date in julian day 
    2117; 
    22 ; COMMON BLOCKS: none 
     18; @examples  
    2319; 
    24 ; SIDE EFFECTS: ? 
    25 ; 
    26 ; RESTRICTIONS: ? 
    27 ; 
    28 ; EXAMPLE: 
    29 ; 
     20;    IDL> jday = juldate(19930124) 
    3021;    IDL> print, date2jul(19931205) EQ julday(12,5,1993)  
    3122;       1 
     
    3324;       1 
    3425; 
    35 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr) 
     26; @history Sebastien Masson (smasson@lodyc.jussieu.fr) 
    3627;                       June 2005 
    3728;- 
  • trunk/SRC/Calendar/date2string.pro

    r9 r93  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME: date2string 
    65; 
    7 ; PURPOSE: create a nice and readable format to print a date 
     6; create a nice and readable format to print a date 
    87; 
    9 ; CATEGORY: calendar/string 
     8; @categories calendar, string 
    109; 
    11 ; CALLING SEQUENCE: nice_date = date2string(yyyymmdd) 
    12 ;  
    13 ; INPUTS: yyyymmdd the date in the format  
    14 ;         yearyearyearyearmonthmonthdayday 
     10; @param yyyymmdd {in}{required} the date in the format yyyymmdd 
    1511; 
    16 ; KEYWORD PARAMETERS:those of string fonction to specify the 
    17 ;                    format of the month (the C format) 
     12; @file_comments keyword parameters of string function to specify the format of the month (the C format) can be used 
    1813; 
    19 ; OUTPUTS: a string containing the date in a easy readable format 
     14; @returns a string containing the date in a easy readable format 
    2015; 
    21 ; COMMON BLOCKS:none 
    22 ; 
    23 ; SIDE EFFECTS:? 
    24 ; 
    25 ; RESTRICTIONS:? 
    26 ; 
    27 ; EXAMPLE: 
     16; @examples  
    2817; 
    2918;    IDL> print, date2string(19900123) 
     
    3221;    JAN 23, 1990 
    3322; 
    34 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr) 
     23; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    3524; Creation ??? 
    3625; update/review June 2005 Sebastien Masson. 
  • trunk/SRC/Calendar/daysinmonth.pro

    r9 r93  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME:daysinmonth 
    65; 
    7 ; PURPOSE:give the nomber of days in a specefic month 
     6; give the number of days in a specific month 
    87; 
    9 ; CATEGORY: calandar 
     8; @categories calendar 
    109; 
    11 ; CALLING SEQUENCE: ndays = daysinmonth([month[, year]]) 
    1210; 
    13 ; INPUTS (optionnal): month and year. Year is used only if the 
    14 ;      common variable key_caltype = 'greg'. In that case, month 
    15 ;      and year must have the same number of elements. if not 
    16 ;      provided, we take month and year from "time" common variable. 
     11; @param month {in}{optional}  
     12; @param year {in}{optional}  
     13; Year is used only if the  common variable key_caltype = 'greg'.  
     14; In that case, month and year must have the same number of elements.  
     15; If not provided, we take month and year from "time" common variable. 
    1716; 
    18 ; KEYWORD PARAMETERS: 
     17; @returns number of days in a month or -1 in case of error 
    1918; 
    20 ; OUTPUTS: 
     19; @uses cm_4cal 
     20;         
     21; @examples  
     22; IDL> ndays = daysinmonth(2, 2000) 
    2123; 
    22 ; COMMON BLOCKS: cm_4cal 
    23 ;         
    24 ; SIDE EFFECTS: return -1 in case of error 
    25 ; 
    26 ; RESTRICTIONS: 
    27 ; 
    28 ; EXAMPLE: 
    29 ; 
    30 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr) 
     24; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    3125;                       2/7/98 
    3226; update/review/english/new commons: June 2005 Sebastien Masson. 
  • trunk/SRC/Calendar/jul2date.pro

    r69 r93  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME: jul2date 
    65; 
    7 ; PURPOSE: gives yyyymmdd date equivalent of a julian day 
     6; gives yyyymmdd date equivalent of a julian day 
    87; 
    9 ; CATEGORY: calendar 
     8; @categories calendar 
    109; 
    11 ; CALLING SEQUENCE: date = jul2date(jday) 
     10; @param jday {in}{required} julian day 
    1211; 
    13 ; INPUTS:jday: julian day 
     12; @returns date in yyyymmdd format 
    1413; 
    15 ; KEYWORD PARAMETERS: None 
    16 ; 
    17 ; OUTPUTS: date in yyyymmdd format 
    18 ; 
    19 ; COMMON BLOCKS: None 
    20 ; 
    21 ; SIDE EFFECTS: 
    22 ; 
    23 ; RESTRICTIONS: 
    24 ; 
    25 ; EXAMPLE: 
     14; @examples  
    2615; 
    2716;    IDL> print, jul2date(julday(12,23,1999)) 
    2817;        19991223 
    2918; 
    30 ; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr) 
     19; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    3120;                       June 2005 
    3221;- 
  • trunk/SRC/Calendar/leapyr.pro

    r9 r93  
    11;----------------------------------------------------------------- 
    2 function leapyr, year 
    32;+ 
    4 ; NAME:                 leapyr 
    53; 
    6 ; PURPOSE:              determine whether the input year is a leap year or not 
    7 ;                       Very useful for finding number of days in a year. 
    8 ;                       eg. NUM_DAYS_IN_YR = 365 + leapyr(year) 
     4; determine whether the input year is a leap year or not 
     5; Very useful for finding number of days in a year. 
     6; eg. NUM_DAYS_IN_YR = 365 + leapyr(year) 
    97; 
    10 ; CATEGORY:             Utility 
     8; @categories calendar 
    119; 
    12 ; CALLING SEQUENCE:     result = leapyr(year) 
     10; @param year {in}{required} year to be tested as a leap year 
    1311; 
    14 ; INPUTS:               year    = test if year is a leap year  
     12; @returns 0 then not a leap year  
     13;          1 then year is a leap year 
    1514; 
    16 ; OUTPUTS:              result  = 0 then not a leap year 
    17 ;                               = 1 then year is a leap year 
     15; @uses cm_4cal 
    1816; 
    19 ; COMMON BLOCKS: cm_4cal 
     17; @examples 
     18; IDL> result = leapyr(2000) 
    2019; 
    21 ; SIDE EFFECTS: 
    22 ;       none. 
    23 ; MODIFICATION HISTORY: 
     20; @history 
    2421; 
    25 ;       Originally Written by: Trevor Harris, Physics Dept., University of Adelaide, 
    26 ;               20/09/88 
     22; Originally Written by: Trevor Harris, Physics Dept., University of Adelaide, 
     23;20/09/88 
    2724; 
    2825;       November 2004: correction for century years... S. Masson; 
     
    4037;- 
    4138;------------------------------------------------------------ 
     39function leapyr, year 
    4240; include commons 
    4341@cm_4cal 
    44 ;------------------------------------------------------------    
    4542  yr = long(year) 
    4643  IF n_elements(key_caltype) EQ 0 THEN key_caltype = 'greg' 
  • trunk/SRC/Calendar/monthname.pro

    r9 r93  
    33;------------------------------------------------------------ 
    44;+ 
    5 ; NAME:monthname 
    65; 
    7 ; PURPOSE:gives the name of a month 
     6; gives the name of a month 
    87; 
    9 ; CATEGORY: 
     8; @categories calendar 
     9;  
     10; @param number {in}{required}  the month number (from 1 to 12) 
    1011; 
    11 ; CALLING SEQUENCE:name=monthname(number) 
    12 ;  
    13 ; INPUTS: number, the month number (from 1 to 12) 
     12; @file_comments keyword parameters of string function to specify the format of the month (the C format) can be used. 
    1413; 
    15 ; KEYWORD PARAMETERS:those of string fonction to specify the 
    16 ;                    format of the month (the C format) 
     14; @returns the month's name 
    1715; 
    18 ; OUTPUTS: an integer, the month's name 
     16; @examples  
     17; IDL> name=monthname(2) 
    1918; 
    20 ; COMMON BLOCKS:None 
    21 ; 
    22 ; SIDE EFFECTS: 
    23 ; 
    24 ; RESTRICTIONS: 
    25 ; 
    26 ; EXAMPLE: 
    27 ; 
    28 ; MODIFICATION HISTORY:Sebastien Masson (smasson@lodyc.jussieu.fr) 
     19; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    2920;                      1 October 2001 
    3021;- 
Note: See TracChangeset for help on using the changeset viewer.