Changeset 369 for trunk/SRC/ToBeReviewed


Ignore:
Timestamp:
08/06/08 17:52:18 (16 years ago)
Author:
pinsard
Message:

improvements of some headers

Location:
trunk/SRC/ToBeReviewed/PLOTS
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/PLOTS/LABEL/label.pro

    r327 r369  
    1 ;------------------------------------------------------------ 
    2 ;------------------------------------------------------------ 
    3 ;------------------------------------------------------------ 
    41;+ 
    52; 
    63; @file_comments 
    7 ; Allows to choose the type of the label we want to use at the time of a contour. 
     4; Allows to choose the type of the label we want to use at the time of a  
     5; contour. 
    86; 
    97; @categories 
     
    1210; @param CAS {in}{required} 
    1311; Number of the type of the label we want to trace 
    14 ;        
     12; 
    1513; @param MIN {in}{required} 
    1614; Smallest value for the drawing of the contour. 
     
    3735; 
    3836; @uses 
    39 ; common.pro 
     37; <pro>common</pro> 
    4038; 
    4139; @history 
    4240; Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    43 ;                       7/5/98 
     41;                  7/5/98 
    4442; 
    4543; @version 
  • trunk/SRC/ToBeReviewed/PLOTS/LABEL/label_date.pro

    r327 r369  
    1 ; 
    2 ; Copyright (c) 1993-1998, Research Systems, Inc.  All rights reserved. 
    3 ;       Unauthorized reproduction prohibited. 
    4  
    51;+ 
    62; 
     
    117; Plotting 
    128; 
    13 ; @param AXIS {in}{required} 
     9; @param AXIS {in} 
    1410; 
    15 ; @param INDEX {in}{required} 
     11; @param INDEX {in} 
    1612; 
    17 ; @param X {in}{required} 
     13; @param X {in} 
    1814; 
    1915; @keyword DATE_FORMAT 
    2016; a format string which may contain the following: 
    21 ; %M for month (3 character abbr) 
    22 ; %N for month (2 digit abbr) 
     17; %M for month (3 characters abbr) 
     18; %N for month (2 digits abbr) 
    2319; %D for day of month, 
    24 ; %Y for 4 digit year. 
     20; %Y for 4 digits year. 
    2521; %Z for last two digits of year. 
    2622;  For time: 
     
    4945; 
    5046; @uses 
    51 ; LABEL_DATE_COM. 
    5247; 
    5348; @restrictions 
     
    5550; 
    5651; @examples 
     52; 
    5753; For example, to plot from Jan 1, 1993, to July 12, 1994: 
    58 ; Start_date = julday(1, 1, 1993) 
    59 ; End_date = julday(7, 12, 1994) 
    60 ; Dummy = LABEL_DATE(DATE_FORMAT='%N/%D')  ;Simple mm/dd 
    61 ; x = findgen(end_date+1 - start_date) + start_date ;Time axis 
    62 ; PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=1 
    63 ; (Plot with X axis style set to exact.) 
    64 ;        
     54; 
     55;  IDL> Start_date = julday(1, 1, 1993) 
     56;  IDL> End_date = julday(7, 12, 1994) 
     57;  IDL> ; Simple mm/dd 
     58;  IDL> Dummy = LABEL_DATE(DATE_FORMAT='%N/%D') 
     59;  IDL> ;Time axis 
     60;  IDL> x = findgen(end_date+1 - start_date) + start_date 
     61;  IDL> ; Plot with X axis style set to exact 
     62;  IDL> PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=1 
     63; 
    6564; Example with times: 
    66 ;       For example, to plot from 3PM, Jan 1, 1993, to 5AM, Jan 3, 
    67 ;       1993: 
    68 ;       Start_date = Julday(1,1,1993)   ;Also starting offset 
    69 ;       Start_time = (3+12)/24.         ;Starting_time less offset 
    70 ;       End_time = (Julday(1,3,1993) - Start_date) + 5./24. ;Ending 
    71 ;               ;date/time - offset, note that the order of operations is 
    72 ;               ; important to avoid loss of precision. 
    73 ;       Dummy = LABEL_DATE(DATE_FORMAT='%D %M!C%H:%I', $ 
    74 ;               offset=Start_date)       ;MMM NN <new line> HH:MM format 
    75 ;       x = findgen(20) * (End_time - Start_time) / 19 + start_time ;Time axis 
    76 ;       PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=1 
     65; 
     66; For example, to plot from 3PM, Jan 1, 1993, to 5AM, Jan 3, 1993: 
     67; 
     68;  IDL> ; Also starting offset 
     69;  IDL> Start_date = Julday(1,1,1993) 
     70;  IDL> ; Starting_time less offset 
     71;  IDL> Start_time = (3+12)/24. 
     72;  IDL> End_time = (Julday(1,3,1993) - Start_date) + 5./24. 
     73;  IDL> ; Ending date/time - offset, note that the order of operations is 
     74;  IDL> ; important to avoid loss of precision 
     75;  IDL> ; MMM NN <new line> HH:MM format 
     76;  IDL> Dummy = LABEL_DATE(DATE_FORMAT='%D %M!C%H:%I', offset=Start_date) 
     77;  IDL> ;Time axis 
     78;  IDL> x = findgen(20) * (End_time - Start_time) / 19 + start_time 
     79;  IDL> PLOT, x, sqrt(x), XTICKFORMAT = 'LABEL_DATE', XSTYLE=1 
    7780; 
    7881; @history 
    79 ;       DMS, RSI.       April, 1993.    Written. 
    80 ;       DMS, RSI.       March, 1997.    Added Time format. 
     82;     DMS, RSI.     April, 1993.     Written. 
     83;     DMS, RSI.     March, 1997.     Added Time format. 
    8184; 
    8285; Copyright (c) 1993-1998, Research Systems, Inc.  All rights reserved. 
    83 ;       Unauthorized reproduction prohibited. 
     86;     Unauthorized reproduction prohibited. 
    8487; 
    8588; @version 
     
    119122        i = i + 1 
    120123        c = strmid(fmt, i, 1)   ;The function 
    121         case c of               ;format character? 
     124        case c of          ;format character? 
    122125            'M' : out = out + month_chr[month-1] 
    123126            'N' : out = out + string(format='(i2.2)', month) 
  • trunk/SRC/ToBeReviewed/PLOTS/LABEL/label_gmt.pro

    r325 r369  
    77; 
    88; @param MIN {in}{required} 
    9 ; A reel number specifying above what value we want to trace a contour 
     9; A real number specifying above what value we want to trace a contour 
    1010; 
    1111; @param MAX {in}{required} 
    12 ; A reel number specifying below what value we want to trace a contour 
     12; A real number specifying below what value we want to trace a contour 
    1313; 
    1414; @param INTERVALLE 
     
    5656      IF finite(min) EQ 0 THEN read, ' Grey shade needs a min,max :', min, max 
    5757      ncontour  = fix((max-min)/intervalle) 
    58       level_z2d = min + intervalle*findgen(Ncontour) 
    59       max=level_z2d[Ncontour-1]+intervalle 
     58      level_z2d = min + intervalle*findgen(ncontour) 
     59      max=level_z2d[ncontour-1]+intervalle 
    6060 
    6161      ras = report(['     Number of contour intervals, plotting min & max ' + $ 
     
    9393 
    9494      mid_index = max(where(level_z2d LE fldatt.mid)) 
    95       coul = findgen(Ncontour)+49-mid_index +2 
     95      coul = findgen(ncontour)+49-mid_index +2 
    9696 
    9797   ENDELSE 
  • trunk/SRC/ToBeReviewed/PLOTS/LABEL/lataxe.pro

    r325 r369  
    1 ;------------------------------------------------------------ 
    2 ;------------------------------------------------------------ 
    3 ;------------------------------------------------------------ 
    41;+ 
    52; 
    63; @file_comments 
    7 ; function called by [XYZ]TICKFORMAT (see the help to see how to use it) to label axes in latitude. 
     4; function called by [XYZ]TICKFORMAT (see the help to see how to use it) to  
     5; label axes in latitude. 
    86; 
    97; @categories 
     
    1513; @param INDEX 
    1614; It is the tick mark index which starts at 0. 
    17 ;        
     15; 
    1816; @param VALUE 
    1917; It is the default tick mark value (a floating-point number). 
     
    5351   return, nom 
    5452end 
    55  
  • trunk/SRC/ToBeReviewed/PLOTS/LABEL/lonaxe.pro

    r325 r369  
    1 ;------------------------------------------------------------ 
    2 ;------------------------------------------------------------ 
    3 ;------------------------------------------------------------ 
    41;+ 
    52; 
    63; @file_comments 
    7 ; function called by [XYZ]TICKFORMAT (see the help to see how to use it) to label axes in longitude. 
     4; function called by [XYZ]TICKFORMAT (see the help to see how to use it) to  
     5; label axes in longitude. 
    86; 
    97; @categories 
     
    1513; @param INDEX 
    1614; It is the tick mark index which starts at 0. 
    17 ;        
     15; 
    1816; @param VALUE 
    1917; It is the default tick mark value (a floating-point number). 
     
    5250   return, nom 
    5351end 
    54  
  • trunk/SRC/ToBeReviewed/PLOTS/axe.pro

    r327 r369  
    2929; 
    3030; @keyword DIGITSYEAR 
    31 ; =2 to use %Z format (2 digits) to code years instead of %Y format. 
     31; =2 to use %Z format (2 digits) to code years instead of %Y format (4 digits). 
    3232; See <pro>label_date</pro> for more information on %Z and %Y. 
    3333; 
     
    3636; 
    3737; @uses 
    38 ; common.pro 
     38; <pro>common</pro> 
    3939; 
    4040; @restrictions 
  • trunk/SRC/ToBeReviewed/PLOTS/legende.pro

    r344 r369  
    2828; 
    2929; @uses 
    30 ; common.pro 
     30; <pro>common</pro> 
    3131; 
    3232; @restrictions 
  • trunk/SRC/ToBeReviewed/PLOTS/reinitplt.pro

    r325 r369  
    2828; 
    2929; @uses 
    30 ; common.pro 
     30; <pro>common</pro> 
    3131; 
    3232; @restrictions 
Note: See TracChangeset for help on using the changeset viewer.