Changeset 368 in lmdz_wrf for trunk


Ignore:
Timestamp:
Mar 19, 2015, 6:07:56 PM (10 years ago)
Author:
lfita
Message:

Fixing problem of the new var definition on NON-WRF varibales

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/vertical_interpolation.py

    r367 r368  
    314314            varu = 'gpm'
    315315            varinterp = np.zeros((dimv[0], Nintvals, dimv[2], dimv[3]), dtype=np.float)
     316            newvar = newnc.createVariable(var, 'f4', ('time','z','y','x'))
    316317        elif var == 'WRFrh':
    317318            print '    ' + main + ': computing relative humidity from WRF as ' +     \
     
    331332            varu = '%'
    332333            varinterp = np.zeros((dimv[0], Nintvals, dimv[2], dimv[3]), dtype=np.float)
     334            newvar = newnc.createVariable(var, 'f4', ('time','z','y','x'))
    333335        elif var == 'WRFt':
    334336            print '    ' + main + ': computing temperature from WRF as ' +           \
     
    342344            varu = 'K'
    343345            varinterp = np.zeros((dimv[0], Nintvals, dimv[2], dimv[3]), dtype=np.float)
     346            newvar = newnc.createVariable(var, 'f4', ('time','z','y','x'))
    344347        else:
    345348            print errormsg
Note: See TracChangeset for help on using the changeset viewer.