Changeset 1170 in lmdz_wrf for trunk/tools/nc_var_tools.py


Ignore:
Timestamp:
Oct 10, 2016, 6:03:34 PM (8 years ago)
Author:
lfita
Message:

Fixing pinterp' right de-staggering of geop'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1167 r1170  
    1643516435        unstg[1] = unstg[1] - 1
    1643616436        geop = np.zeros(tuple(unstg), dtype=np.float)
    16437         geop = 0.5*(geop0[:,1:dimz,:,:] + geop0[:,0:dimz-1,:,:]).astype('float64')
     16437        geop = 0.5*(geop0[:,1:dimz+1,:,:] + geop0[:,0:dimz,:,:]).astype('float64')
    1643816438    elif modname == 'LMDZ' or modname == 'cfLMDZ':
    1643916439        ovar1 = onc.variables['geop']
     
    1659916599            tempt = temp.transpose()
    1660016600            qvt = qv.transpose()
     16601
    1660116602            varinterp = fin.module_forinterpolate.interp( data_in=varint,            \
    1660216603              pres_field=prest, interp_levels=interplevs, psfc=psfct,                \
Note: See TracChangeset for help on using the changeset viewer.