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/ToBeReviewed/PLOTS/axe.pro

    r209 r226  
    88; pltz and pltt 
    99; 
    10 ; @categories  
     10; @categories 
    1111; Graphics 
    1212; 
    1313; @param COUPE {type=string} 
    14 ; It designate the type of cut to which the axes we create  
     14; It designate the type of cut to which the axes we create 
    1515; must report. For example: 'xy','xt'... 
    1616; 
    1717; @param TEMPSMIN {in}{required} 
    18 ; In the case where we do cut containing the time dimension, we have  
     18; In the case where we do cut containing the time dimension, we have 
    1919; to specify the beginning of the time's axis in julian days. 
    2020; 
    2121; @param TEMPSMAX {in}{required} 
    22 ; In the case where we do cut containing the time dimension, we have  
     22; In the case where we do cut containing the time dimension, we have 
    2323; to specify the end of the time's axis in julian days. 
    2424; 
    25 ; @keyword SIN  
     25; @keyword SIN 
    2626; activated when we trace in sinus of the latitude 
    2727; 
    2828; @keyword SEPDATE {type=string} 
    29 ; It separate the different constituents of the date. By default,  
    30 ; it is a return to the line when we do a 'yt', 'zt' or a 't'.  
    31 ; In the other cases, it is a blank.  
     29; It separate the different constituents of the date. By default, 
     30; it is a return to the line when we do a 'yt', 'zt' or a 't'. 
     31; In the other cases, it is a blank. 
    3232; 
    3333; @keyword DIGITSYEAR 
     
    3636; information on %Z and %Y. 
    3737; 
    38 ; @keyword _EXTRA  
     38; @keyword _EXTRA 
    3939; used to pass your keywords 
    40 ;  
     40; 
    4141; @uses 
    4242; common.pro 
     
    6565   tempsun = systime(1)         ; pour key_performance 
    6666;-------------------------------------------------------------- 
    67 ; Management of ticks of the time axis in the case of TEMPSMIN  
    68 ; and TEMPSMAX are definied 
     67; Management of ticks of the time axis in the case of TEMPSMIN 
     68; and TEMPSMAX are defined 
    6969;-------------------------------------------------------------- 
    7070   divday = 0 
     
    9494          ymax-ymin+1 GT 10: BEGIN & freq = 2. & tminor = 4 & datfmt = '%M'+sep+fmtyr & end 
    9595          ELSE: BEGIN & freq = 1. & tminor = 4 & datfmt = '%M'+sep+fmtyr & end 
    96           ENDCASE  
     96          ENDCASE 
    9797          nticks = ceil((ymax-ymin)/freq) + 2 
    9898          yminf = (floor(ymin/freq))*freq 
     
    174174          for mn = 0, nticks-1 do ticknom[mn] = julday(mmin, dmin, ymin, hmin, mnminf + freq*mn, 0, _EXTRA = ex) 
    175175          ticknom = ticknom[where(ticknom GE tempsmin AND ticknom LE tempsmax, nticks)] 
    176           datfmt = '%H:%I'  
     176          datfmt = '%H:%I' 
    177177        END 
    178178; second base 
     
    201201      dummy = label_date(0, 0, 0, DATE_FORMAT = datfmt, _EXTRA = ex) 
    202202      if chkstru(ex, 'DATE_FORMAT') then ex.DATE_FORMAT = '' 
    203    ENDIF  
     203   ENDIF 
    204204;-------------------------------------------------------------- 
    205205; Definition of axes parameters case by case 
    206206;-------------------------------------------------------------- 
    207207   case coupe of 
    208       'pltv':BEGIN  
     208      'pltv':BEGIN 
    209209        dtasize = tempsmin 
    210210         !x.range = [-0.5, dtasize[0] - 0.5] 
    211          !y.range = [-0.5, dtasize[1] - 0.5]  
     211         !y.range = [-0.5, dtasize[1] - 0.5] 
    212212         if keyword_set(reverse_x) then !x.range=reverse(!x.range) 
    213213         if keyword_set(reverse_y) then !y.range=reverse(!y.range) 
     
    215215         !y.title = 'ny' 
    216216      END 
    217       'xy':BEGIN  
     217      'xy':BEGIN 
    218218         if keyword_set(reverse_x) then !x.range=[lon2,lon1] ELSE !x.range=[lon1,lon2] 
    219219         if keyword_set(reverse_y) then !y.range=[lat2,lat1] ELSE !y.range=[lat1,lat2] 
     
    221221         IF key_onearth THEN !y.tickformat='lataxe' 
    222222      END 
    223       'yz':BEGIN  
     223      'yz':BEGIN 
    224224         if keyword_set(reverse_x) then !x.range=[lat2,lat1] ELSE !x.range=[lat1,lat2] 
    225225         if keyword_set(reverse_y) then !y.range=[0, -1] ELSE !y.range = [-1, 0] 
     
    227227; number of ticks by default 
    228228            plot, [0], [0], /noerase, /nodata, xtick_get = xaxe 
    229 ; We increase this number to it be around 10  
     229; We increase this number to it be around 10 
    230230            ticks = n_elements(xaxe)-1 
    231231            ticks = ticks*[1, 2, 4, 8] 
     
    241241         endif 
    242242      end 
    243       'xz':BEGIN  
     243      'xz':BEGIN 
    244244         if keyword_set(reverse_x) then !x.range=[lon2,lon1] ELSE !x.range=[lon1,lon2] 
    245245         if keyword_set(reverse_y) then !y.range=[0, -1] ELSE !y.range = [-1, 0] 
     
    252252;          result = LABEL_DATE(DATE_FORMAT = '%M'+sep+fmtyr) 
    253253;          !y.tickformat='LABEL_DATE' 
    254          !y.tickname = LABEL_DATE(1, 0,ticknom,_EXTRA = ex)  
     254         !y.tickname = LABEL_DATE(1, 0,ticknom,_EXTRA = ex) 
    255255         !y.ticklen=1. 
    256256         !y.gridstyle=2 
     
    266266         if keyword_set(reverse_y) then !y.range=[lat2, lat1] ELSE !y.range=[lat1,lat2] 
    267267         IF key_onearth THEN !y.tickformat='lataxe' 
    268          !x.tickname = LABEL_DATE(0, 0,ticknom,_EXTRA = ex)  
     268         !x.tickname = LABEL_DATE(0, 0,ticknom,_EXTRA = ex) 
    269269         !x.ticklen=1. 
    270270         !x.gridstyle=2 
     
    278278         if keyword_set(reverse_x) then !x.range = [tempsmax,tempsmin]-tempsmin $ 
    279279         ELSE !x.range=[tempsmin,tempsmax]-tempsmin 
    280          if vargrid EQ 'W' then gdep=gdepw[0:nzw-1] ELSE gdep=gdept[0:nzt-1]  
    281          !x.tickname = LABEL_DATE(0, 0,ticknom,_EXTRA = ex)  
     280         if vargrid EQ 'W' then gdep=gdepw[0:nzw-1] ELSE gdep=gdept[0:nzt-1] 
     281         !x.tickname = LABEL_DATE(0, 0,ticknom,_EXTRA = ex) 
    282282         !x.ticklen=1. 
    283283         !x.gridstyle=2 
     
    291291         if keyword_set(reverse_x) then !x.range = [tempsmax,tempsmin]-tempsmin $ 
    292292         ELSE !x.range=[tempsmin,tempsmax]-tempsmin 
    293          !x.tickname = LABEL_DATE(0, 0,ticknom,_EXTRA = ex)  
     293         !x.tickname = LABEL_DATE(0, 0,ticknom,_EXTRA = ex) 
    294294         !x.ticklen=1. 
    295295         !x.gridstyle=2 
     
    308308; Number of ticks by default 
    309309            plot, [0], [0], /nodata, /noerase, xstyle = 5, ystyle = 5, xtick_get = xaxe 
    310 ; We increase this number to it be around 10  
     310; We increase this number to it be around 10 
    311311            ticks = n_elements(xaxe)-1 
    312312            ticks = ticks*[1, 2, 4, 8] 
     
    324324      END 
    325325      'z' : begin 
    326 ;          if vargrid EQ 'W' then gdep=gdepw[0:nzw-1] ELSE gdep=gdept[0:nzt-1]  
     326;          if vargrid EQ 'W' then gdep=gdepw[0:nzw-1] ELSE gdep=gdept[0:nzt-1] 
    327327;          if keyword_set(reverse_y) then !y.range=[gdep[0], gdep[n_elements(gdep)-1]] $ 
    328328;          ELSE !y.range=[gdep[n_elements(gdep)-1], gdep[0]] 
    329       END  
     329      END 
    330330   endcase 
    331    if keyword_set(key_performance) THEN print, 'temps axe', systime(1)-tempsun  
     331   if keyword_set(key_performance) THEN print, 'temps axe', systime(1)-tempsun 
    332332   return 
    333333end 
Note: See TracChangeset for help on using the changeset viewer.