Changeset 2661 in lmdz_wrf


Ignore:
Timestamp:
Jul 8, 2019, 6:52:46 PM (5 years ago)
Author:
lfita
Message:

Fixing 'front_R04'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diagnostics.py

    r2655 r2661  
    828828        attrv = ovar.getncattr('long_name')
    829829        ncvar.set_attribute(ovar, 'long_name', attrv + ' of ' + depvars[0])
     830        ncobj.sync()
    830831        ncvar.insert_variable(ncobj, 'gradh', diag3, diagoutd, diagoutvd, newnc,     \
    831832          fill=gen.fillValueF)
     
    837838        attrv = ovar.getncattr('long_name')
    838839        ncvar.set_attribute(ovar, 'long_name', attrv + ' of wss')
     840        ncobj.sync()
    839841        ncvar.insert_variable(ncobj, 'dt2', diag4, diagoutd, diagoutvd, newnc,       \
    840842          fill=gen.fillValueF)
     843        ovar = newnc.variables['dt2']
    841844        vu = var0.getncattr('units')
    842845        ncvar.set_attribute(ovar, 'units', vu)
     
    845848        attrv = ovar.getncattr('long_name')
    846849        ncvar.set_attribute(ovar, 'long_name', attrv + ' of ' + depvars[0])
     850        ncobj.sync()
    847851
    848852# LMDZrh (pres, t, r)
Note: See TracChangeset for help on using the changeset viewer.