Changeset 512 in lmdz_wrf for trunk/tools
- Timestamp:
- Jun 19, 2015, 11:40:10 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/validation_sim.py
r511 r512 1719 1719 basicvardef(newvar, 'obstime', 'exact coincident time observations and simulation', obstunits) 1720 1720 set_attribute(newvar, 'calendar', 'standard') 1721 print 'Lluis Nexacttvalues:',len(exacttvalues[:,3]) 1721 1722 newvar[:] = exacttvalues[:,3] 1722 1723 … … 1997 1998 descvar = 'exact time simulated: ' + valvars[ivar][0] 1998 1999 basicvardef(newvar, valvars[ivar][0], descvar, ovobs.getncattr('units')) 2000 print 'Lluis NEarratvals:',len(Earrayvals[:,0]) 1999 2001 newvar[:] = Earrayvals[:,0] 2000 2002 … … 2029 2031 else: 2030 2032 newvar = onewnc.createVariable(valvars[ivar][0] + 'around', 'f', \ 2031 (' time','yaround','xaround'), fill_value=fillValueF)2033 ('betweentime','yaround','xaround'), fill_value=fillValueF) 2032 2034 2033 2035 descvar = 'around simulated values +/- grid values: ' + valvars[ivar][0] … … 2040 2042 'stats'), fill_value=fillValueF) 2041 2043 descvar = 'simulated statisitcs: ' + valvars[ivar][0] 2042 basicvardef(newvar, valvars[ivar][0] + 'stsim', descvar, ovobs.getncattr('units')) 2044 basicvardef(newvar, valvars[ivar][0] + 'stsim', descvar, \ 2045 ovobs.getncattr('units')) 2043 2046 newvar[:] = simstats 2044 2047 … … 2056 2059 newvar = onewnc.createVariable(varsimobs + 'st', 'f', ('Nstsim', 'gstats'), \ 2057 2060 fill_value=fillValueF) 2058 descvar = 'simulated-observed statisitcs: ' + varsimobs2061 descvar = 'simulated-observed tatisitcs: ' + varsimobs 2059 2062 basicvardef(newvar, varsimobs + 'st', descvar, ovobs.getncattr('units')) 2060 2063 newvar[:] = simobsstats … … 2063 2066 if not searchInlist(onewnc.variables,valvars[ivar][0] + 'staround'): 2064 2067 newvar = onewnc.createVariable(valvars[ivar][0] + 'staround', 'f', \ 2065 (' time','stats'), fill_value=fillValueF)2068 ('betweentime','stats'), fill_value=fillValueF) 2066 2069 descvar = 'around (' + str(Ngrid) + ', ' + str(Ngrid) + \ 2067 2070 ') simulated statisitcs: ' + valvars[ivar][0] … … 2071 2074 2072 2075 if not searchInlist(onewnc.variables, 'time_bnds'): 2073 newvar = onewnc.createVariable('time_bnds','f8',(' time','bnds'))2074 basicvardef(newvar, 'time_bnds', ' time', obstunits )2076 newvar = onewnc.createVariable('time_bnds','f8',('betweentime','bnds')) 2077 basicvardef(newvar, 'time_bnds', 'betweentime', obstunits ) 2075 2078 set_attribute(newvar, 'calendar', 'standard') 2076 2079 newvar[:] = simobsTtvalues … … 2079 2082 if not searchInlist(onewnc.variables,valvars[ivar][1] + 'staround'): 2080 2083 newvar = onewnc.createVariable(valvars[ivar][1] + 'staround', 'f', \ 2081 (' time','tstats'), fill_value=fillValueF)2084 ('betweentime','tstats'), fill_value=fillValueF) 2082 2085 descvar = 'around temporal observed statisitcs: ' + valvars[ivar][1] 2083 2086 basicvardef(newvar, valvars[ivar][1] + 'staround', descvar, \ … … 2090 2093 2091 2094 if trjsim is not None: 2092 newvar = onewnc.createVariable('simtrj','i',(' time','simtrj'))2095 newvar = onewnc.createVariable('simtrj','i',('betweentime','simtrj')) 2093 2096 basicvardef(newvar,'simtrj','coordinates [X,Y,Z,T] of the coincident ' + \ 2094 2097 'trajectory in sim', obstunits)
Note: See TracChangeset
for help on using the changeset viewer.