Changeset 493 in lmdz_wrf for trunk/tools/validation_sim.py
- Timestamp:
- Jun 15, 2015, 12:27:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/validation_sim.py
r492 r493 1357 1357 simobstimes = coincident_CFtimes(tsim, obstunits, simtunits) 1358 1358 1359 # Coincident times 1359 # 1360 ## Looking for exact/near times 1361 # 1362 1363 # Exact Coincident times 1364 ## 1365 exacttvalues0 = [] 1366 for it in range(dimtsim): 1367 ot = 0 1368 for ito in range(ot,dimtobs-1): 1369 if valdimobs['T'][ito] = simobstimes[it]: 1370 ot = ito 1371 exacttvalues0.append([it, ito, simobstimes[it], valdimobs['T'][ito]]) 1372 1373 exacttvalues = np.array(exacttvalues0, dtype=np.float) 1374 Nexactt = len(exacttvalues[:,0]) 1375 1376 print main + ': found',Nexactt,'Temporal same values in simulation and observations' 1377 print ' 'exacttvalues 1378 1379 # Sim Coincident times 1360 1380 ## 1361 1381 coindtvalues0 = [] … … 1373 1393 1374 1394 Ncoindt = len(coindtvalues[:,0]) 1375 print main + ': found',Ncoindt,'coincident times between simulation and observations' 1395 print main + ': found',Ncoindt,'Simulation time-interval (within consecutive ' + \ 1396 'observed times) coincident times between simulation and observations' 1376 1397 print ' 'coindtvalues 1377 1398 quit()
Note: See TracChangeset
for help on using the changeset viewer.