Changeset 405


Ignore:
Timestamp:
10/01/09 15:56:03 (15 years ago)
Author:
smasson
Message:

bugfix in ncdf_getaxis

File:
1 edited

Legend:

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

    r399 r405  
    126126  IF xvarid EQ -1 THEN BEGIN 
    127127    dummy = report(['xaxis variable was not found within the default names:' $ 
    128                     , '''longitude'', ''nav_lon'', ''lon'', ''lon_rho'', ''nblongitudes''' $ 
     128                    , '''x'', ''longitude'', ''nav_lon'', ''lon'', ''lon_rho'', ''nblongitudes''' $ 
    129129                    , ' we use a fake xaxis based on x dimension size (or use XAXISNAME keyword)'], /simple) 
    130130    xaxisname = 'Not Found' 
     
    192192  ENDELSE 
    193193  IF arg_present(xdimname) THEN ncdf_diminq, cdfid, dimidx,  xdimname, tmp 
     194  IF n_elements(jpifromx) EQ 0 THEN jpifromx = tmp 
    194195; 
    195196  IF arg_present(xaxis) THEN BEGIN 
     
    221222  if yvarid EQ -1 then begin 
    222223    dummy = report(['yaxis variable was not found within the default names:' $ 
    223                     , '''latitude'', ''nav_lat'', ''lat'', ''lat_rho'', ''nblatitudes''' $ 
     224                    , '''y'', ''latitude'', ''nav_lat'', ''lat'', ''lat_rho'', ''nblatitudes''' $ 
    224225                    , ' we use a fake yaxis based on y dimension size (or use YAXISNAME keyword)'], /simple) 
    225226    yaxisname = 'Not Found' 
     
    286287  ENDELSE 
    287288  IF arg_present(ydimname) THEN ncdf_diminq, cdfid, dimidy,  ydimname, tmp 
     289  IF n_elements(jpjfromy) EQ 0 THEN jpjfromy = tmp 
    288290; 
    289291  IF arg_present(yaxis) THEN BEGIN 
Note: See TracChangeset for help on using the changeset viewer.