Changeset 1944 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jul 17, 2018, 11:20:21 PM (6 years ago)
Author:
lfita
Message:

Fixing `WRFp' computation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diagnostics.py

    r1943 r1944  
    11171117# WRFp pressure from WRF as P + PB
    11181118    elif diagn == 'WRFp':
    1119            
    1120         diagout = WRFp
     1119        var0 = ncobj.variables[depvars[0]][:]
     1120        var1 = ncobj.variables[depvars[1]][:]
     1121           
     1122        diagout = var0 + var1
    11211123
    11221124        ncvar.insert_variable(ncobj, 'pres', diagout, dnames, dvnames, newnc)
     
    14851487    # Adding that additional variables required to compute some diagnostics which
    14861488    #   where not in the original file
     1489    print '  adding additional variables...'
    14871490    for vadd in varsadd:
    14881491        if not gen.searchInlist(newnc.variables.keys(),vadd) and                     \
Note: See TracChangeset for help on using the changeset viewer.