Changeset 443 in lmdz_wrf
- Timestamp:
- May 28, 2015, 3:43:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diagnostics.py
r442 r443 970 970 var0 = ncobj.variables[depvars[0]] 971 971 var1 = ncobj.variables[depvars[1]] 972 var2 = ncobj.variables[depvars[2]] 972 if depvarsp[2] != 'WRFtime': 973 var2 = ncobj.variables[depvars[2]] 973 974 974 975 var = var0[:] + var1[:] … … 986 987 dtime = (var2[1] - var2[0])*timeunits_seconds(tunits) 987 988 else: 989 var2 = ncobj.variables['Times'] 988 990 time1 = var2[0,:] 989 991 time2 = var2[1,:] … … 992 994 diffdate12 = ddate2 - ddate1 993 995 dtime = diffdate12.total_seconds() 996 print 'dtime:',dtime 994 997 995 998 ncvar.insert_variable(ncobj, 'pr', diagout/dtime, diagoutd, diagoutvd, newnc)
Note: See TracChangeset
for help on using the changeset viewer.