Changeset 224 for trunk/SRC/ReadWrite


Ignore:
Timestamp:
03/15/07 11:22:28 (17 years ago)
Author:
pinsard
Message:

improvements/corrections of some *.pro headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ReadWrite/ncdf_getaxis.pro

    r221 r224  
    2525; 
    2626; @keyword START1 {default=0}{type=scalar: 0 or 1} 
    27 ; Index the axis from 1 instead of 0 when using /xyindex  
    28 ; 
    29 ; @keyword XDIRNAME {default='longitude', 'lon', 'x', 'longitude*', 'lon*', 'x*', '*longitude*', '*lon*' or '*x*'}{type=scalar string} 
     27; Index the axis from 1 instead of 0 when using /xyindex 
     28; 
     29; @keyword XDIMNAME {default='longitude', 'lon', 'x', 'longitude*', 'lon*', 'x*', '*longitude*', '*lon*' or '*x*'}{type=scalar string} 
    3030; A string giving the name of the x dimension 
    31 ;       
    32 ; @keyword YDIRNAME {default='latitude', 'lat', 'y', 'latitude*', 'lat*', 'y*', 'eta_*', '*latitude*', '*lat*', '*y*'}{type=scalar string} 
     31; 
     32; @keyword YDIMNAME {default='latitude', 'lat', 'y', 'latitude*', 'lat*', 'y*', 'eta_*', '*latitude*', '*lat*', '*y*'}{type=scalar string} 
    3333; A string giving the name of the y dimension 
    34 ;       
     34; 
    3535; @keyword XAXISNAME {default='x', 'longitude', 'nav_lon', 'lon', 'lon_rho' or 'NbLongitudes'}{type=scalar string} 
    36 ; A string giving the name of the variable in the file  
    37 ; that contains the [xyz]axis.  
    38 ;       
     36; A string giving the name of the variable in the file 
     37; that contains the [xyz]axis. 
     38; 
    3939; @keyword YAXISNAME {default='y', 'latitude', 'nav_lat','lat', 'lat_rho' or 'NbLatitudes'}{type=scalar string} 
    40 ; A string giving the name of the variable in the file  
    41 ; that contains the [xyz]axis.  
     40; A string giving the name of the variable in the file 
     41; that contains the [xyz]axis. 
    4242; 
    4343; @keyword XYINDEX {default=0}{type=scalar: 0 or 1} 
    4444; To define the x/y axis with index instead of using 
    45 ; the values contained in X/YAXISNAME.  
    46 ; x/yaxis = keyword_set(start1) + findgen(jpi/jpj)  
     45; the values contained in X/YAXISNAME. 
     46; x/yaxis = keyword_set(start1) + findgen(jpi/jpj) 
    4747; 
    4848; @keyword XYINDEX {default=0}{type=scalar: 0 or 1} 
     
    7272  namedim = strarr(inside.ndims) 
    7373  for dimiq = 0, inside.ndims-1 do begin 
    74     ncdf_diminq, cdfid, dimiq, tmpname, value  
     74    ncdf_diminq, cdfid, dimiq, tmpname, value 
    7575    namedim[dimiq] = strlowcase(tmpname) 
    7676  ENDFOR 
     
    8989                  OR namevar EQ 'nav_lon' OR namevar EQ 'lon' $ 
    9090                  OR namevar EQ 'lon_rho' OR namevar EQ 'nblongitudes'))[0] 
    91 ; no xaxis variable found, we will build a fake xaxis based on the size of the x dimension  
     91; no xaxis variable found, we will build a fake xaxis based on the size of the x dimension 
    9292; -> we must find the x dimension 
    9393  IF xvarid EQ -1 THEN BEGIN 
     
    124124      ENDCASE 
    125125    ENDIF 
    126     romsgrid = 0b    
    127   ENDIF ELSE BEGIN  
     126    romsgrid = 0b 
     127  ENDIF ELSE BEGIN 
    128128    romsgrid = strmid(namevar[xvarid], 0, 4) EQ 'lon_' 
    129129    xinq = ncdf_varinq(cdfid, xvarid) 
     
    135135    ncdf_diminq, cdfid, dimidx, blabla, jpifromx 
    136136; should we read or compute the xaxis? 
    137     IF keyword_set(xyindex) OR xvarid EQ -1 THEN BEGIN  
     137    IF keyword_set(xyindex) OR xvarid EQ -1 THEN BEGIN 
    138138      xaxis = keyword_set(start1) + findgen(jpifromx) 
    139139      xyindex = 1 
     
    143143; make sure of the shape of xaxis 
    144144      IF n_elements(jpjfromx) NE 0 THEN xaxis = reform(xaxis, jpifromx, jpjfromx, /over) 
    145     ENDELSE  
     145    ENDELSE 
    146146  ENDIF 
    147147 
     
    154154                  OR namevar EQ 'lat_rho' OR namevar EQ 'nblatitudes'))[0] 
    155155  yvarid = yvarid[0] 
    156 ; no yaxis variable found, we will build a fake yaxis based on the size of the y dimension  
     156; no yaxis variable found, we will build a fake yaxis based on the size of the y dimension 
    157157; -> we must find the y dimension 
    158158  if yvarid EQ -1 then begin 
     
    189189      ENDCASE 
    190190    ENDIF 
    191   ENDIF ELSE BEGIN  
     191  ENDIF ELSE BEGIN 
    192192    yinq = ncdf_varinq(cdfid, yvarid) 
    193193    IF yinq.ndims GE 2 THEN BEGIN 
    194194      ncdf_diminq, cdfid, yinq.dim[0], blabla, jpifromy 
    195       IF jpifromy NE jpifromx THEN BEGIN  
     195      IF jpifromy NE jpifromx THEN BEGIN 
    196196        dummy = report('x/y axes do not have the same x dimension...') 
    197197        stop 
     
    204204    ncdf_diminq, cdfid, dimidy, blabla, jpjfromy 
    205205    IF n_elements(jpjfromx) NE 0 THEN BEGIN 
    206       IF jpjfromy NE jpjfromx THEN BEGIN  
     206      IF jpjfromy NE jpjfromx THEN BEGIN 
    207207        dummy = report(' x/y axes do not have the same y dimension...') 
    208208        stop 
    209       ENDIF     
     209      ENDIF 
    210210    ENDIF 
    211211; should we read or compute the xaxis? 
    212     IF keyword_set(xyindex) OR yvarid EQ -1 THEN BEGIN  
     212    IF keyword_set(xyindex) OR yvarid EQ -1 THEN BEGIN 
    213213      yaxis = keyword_set(start1) + findgen(jpjfromy) 
    214214    ENDIF ELSE BEGIN 
Note: See TracChangeset for help on using the changeset viewer.