Ignore:
Timestamp:
09/15/06 10:24:36 (18 years ago)
Author:
smasson
Message:

bugfix tvplus + roms + xxx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro

    r174 r181  
    561561      ncdf_attget, cdfid, 'hc', hc, /global 
    562562; look for all variables names 
    563       allvarnames = strarr(varcontient.nvars) 
    564       FOR i = 0, varcontient.nvars-1 DO BEGIN 
     563      allvarnames = strarr(contient.nvars) 
     564      FOR i = 0, contient.nvars-1 DO BEGIN 
    565565        tmp = ncdf_varinq( cdfid, i) 
    566566        allvarnames[i] = tmp.name 
     
    568568      CASE 1 OF 
    569569        keyword_set(hfilename):  $ 
    570            hroms = read_ncdf('h', 0, 0, FILENAME = hfile $ 
     570           hroms = read_ncdf('h', 0, 0, FILENAME = hfilename $ 
    571571                             , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ 
    572572                             , GRID = vargrid, /CALLITSELF, _EXTRA = ex) 
     
    583583                            , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ 
    584584                            , GRID = vargrid, /CALLITSELF, _EXTRA = ex) 
    585         (where(allvarnames EQ 'h'))[0] NE -1: $ 
     585        (where(allvarnames EQ 'zeta'))[0] NE -1: $ 
    586586           zeta = read_ncdf('zeta', firsttps, lasttps, FILENAME = filename $ 
    587587                            , /TIMESTEP, /NOSTRUCT, CONT_NOFILL = CONT_NOFILL $ 
Note: See TracChangeset for help on using the changeset viewer.