Changeset 438 for trunk/SRC


Ignore:
Timestamp:
09/24/10 16:21:08 (14 years ago)
Author:
smasson
Message:

bugfix on ncdf_gettime when time axis is the last variable of the file

File:
1 edited

Legend:

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

    r407 r438  
    106106    REPEAT BEGIN                           ; As long as we have not find a variable having only one dimension: the infinite one 
    107107      timeinq = ncdf_varinq(cdfid, timeid) ; that the variable contain. 
     108      tstok = n_elements(timeinq.dim) EQ 1 AND timeinq.dim[0] EQ inq.recdim 
    108109      timeid = timeid+1 
    109     ENDREP UNTIL (n_elements(timeinq.dim) EQ 1 AND timeinq.dim[0] EQ inq.recdim) OR timeid EQ inq.nvars 
    110     IF timeid EQ inq.nvars THEN BEGIN 
     110    ENDREP UNTIL tstok OR timeid EQ inq.nvars 
     111    IF timeid EQ inq.nvars AND NOT tstok THEN BEGIN 
    111112      CASE caller OF 
    112113        'read_ncdf':err = 'the file '+filename+' as no time axis variable. !C Use the TIMESTEP keyword' 
Note: See TracChangeset for help on using the changeset viewer.