Changeset 584 in lmdz_wrf
- Timestamp:
- Jul 8, 2015, 1:06:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/validation_sim.py
r583 r584 1401 1401 stdv = np.std(sovs) 1402 1402 1403 fsovalues.append([meanv, np.array(sovalues[intv[0]:intv[1]])[0,1], 1403 fsovalues.append([meanv, np.array(sovalues[intv[0]:intv[1]])[0,1], \ 1404 1404 minv, maxv, stdv]) 1405 1405 else: 1406 fsovalues.append([fillValueF, np.ones((2,2),dtype=np.float)*fillValueF\ 1407 , fillValueF, fillValueF, fillValueF]) 1408 1406 fsovalues.append([fillValueF, fillValueF, fillValueF, fillValueF, \ 1407 fillValueF, fillValueF]) 1409 1408 if ds.has_key('Z'): 1410 1409 if okind == 'trajectory': … … 2053 2052 2054 2053 # Re-arranging values... 2055 arrayvals = np.array(simobsvalues) 2054 # For an incomprensible reason it is not working? 2055 # arrayvals = np.array(simobsvalues) 2056 arrayvals = np.zeros((len(simobsvalues),2), dtype=np.float) 2057 for it in range(len(simobsvalues)): 2058 arrayvals[it,:] = simobsvalues[it][0:1] 2059 2056 2060 if len(valvars[ivar]) > 2: 2057 2061 const=np.float(valvars[ivar][3]) … … 2079 2083 2080 2084 # statisics sim 2081 print 'Lluis shapes: ',arrayvals.shape,':',len(simobsvalues)2082 2085 simstats[kst,0] = np.min(arrayvals[:,0]) 2083 2086 simstats[kst,1] = np.max(arrayvals[:,0])
Note: See TracChangeset
for help on using the changeset viewer.