Changeset 528 in lmdz_wrf for trunk/tools
- Timestamp:
- Jun 22, 2015, 4:26:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/validation_sim.py
r527 r528 14 14 import numpy.ma as ma 15 15 16 main = 'valida rion_sim.py'16 main = 'validation_sim.py' 17 17 errormsg = 'ERROR -- errror -- ERROR -- error' 18 18 warnmsg = 'WARNING -- warning -- WARNING -- warning' … … 1773 1773 Nexactt = len(exacttvalues[:,0]) 1774 1774 1775 print main + ': found',Nexactt,'Temporal samevalues in simulation and observations'1775 print main + ': found',Nexactt,'Temporal exact values in simulation and observations' 1776 1776 1777 1777 # Sim Closest times … … 1939 1939 oFillValue = None 1940 1940 1941 simstats = np.zeros((Nstsim,5), dtype=np.float)1942 obsstats = np.zeros((Nstsim,5), dtype=np.float)1943 simobsstats = np.zeros((Nstsim,13), dtype=np.float)1944 aroundstats = np.zeros((5,dimt), dtype=np.float)1945 1946 1941 for kst in range(Nstsim): 1947 1942 timedn = prestdescsim[kst] + 'time' … … 1991 1986 getting_ValidationValues(obskind, Ncoindt, dims, trajpos, ovsim, ovobs,\ 1992 1987 coindtvalues, oFillValue, Ngrid, 'tbackwardSmean') 1993 dimt = Ncoindt1988 dimt = simobsSvalues.shape[0] 1994 1989 1995 1990 if ivar == 0: … … 2006 2001 basicvardef(newvar, vname, 'observed between time', obstunits ) 2007 2002 set_attribute(newvar, 'calendar', 'standard') 2008 newvar[:] = np.unique(coindtvalues[:, 2])2003 newvar[:] = np.unique(coindtvalues[:,3]) 2009 2004 2010 2005 # Re-arranging values... … … 2028 2023 print ' ' + fname + ": operation '"+valvars[ivar][2]+"' not ready!!" 2029 2024 quit(-1) 2025 2026 if kst == 0: 2027 simstats = np.zeros((Nstsim,5), dtype=np.float) 2028 obsstats = np.zeros((Nstsim,5), dtype=np.float) 2029 simobsstats = np.zeros((Nstsim,13), dtype=np.float) 2030 2030 2031 2031 # statisics sim … … 2105 2105 2106 2106 # Statistics around sim values 2107 aroundstats = np.zeros((5,dimt), dtype=np.float) 2108 print 'Lluis dimt:',dimt,simobsSvalues.shape 2107 2109 for it in range(dimt): 2108 2110 aroundstats[0,it] = np.min(simobsSvalues[it,])
Note: See TracChangeset
for help on using the changeset viewer.