Changeset 2661 in lmdz_wrf
- Timestamp:
- Jul 8, 2019, 6:52:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diagnostics.py
r2655 r2661 828 828 attrv = ovar.getncattr('long_name') 829 829 ncvar.set_attribute(ovar, 'long_name', attrv + ' of ' + depvars[0]) 830 ncobj.sync() 830 831 ncvar.insert_variable(ncobj, 'gradh', diag3, diagoutd, diagoutvd, newnc, \ 831 832 fill=gen.fillValueF) … … 837 838 attrv = ovar.getncattr('long_name') 838 839 ncvar.set_attribute(ovar, 'long_name', attrv + ' of wss') 840 ncobj.sync() 839 841 ncvar.insert_variable(ncobj, 'dt2', diag4, diagoutd, diagoutvd, newnc, \ 840 842 fill=gen.fillValueF) 843 ovar = newnc.variables['dt2'] 841 844 vu = var0.getncattr('units') 842 845 ncvar.set_attribute(ovar, 'units', vu) … … 845 848 attrv = ovar.getncattr('long_name') 846 849 ncvar.set_attribute(ovar, 'long_name', attrv + ' of ' + depvars[0]) 850 ncobj.sync() 847 851 848 852 # LMDZrh (pres, t, r)
Note: See TracChangeset
for help on using the changeset viewer.