Changeset 527 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 22, 2015, 4:07:17 PM (10 years ago)
Author:
lfita
Message:

Initializing statistics matrices at the right place
On `tbackwardSmean' giving back the right matrices

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/validation_sim.py

    r526 r527  
    11941194        dimtf = len(uniqt)
    11951195        print '     initially we got',dimt,'values which will become',dimtf
     1196        print '     ==== NOT READY === '
     1197        quit(-1)
    11961198    else:
    11971199        print errormsg
     
    13981400            fsoTtvalues[it,1] = soTtvalues[intv[1],0]
    13991401
    1400         return sovalues, soSvalues, soTtvalues, trjs
     1402        return fsovalues, fsoSvalues, fsoTtvalues, ftrjs
    14011403
    14021404    elif kvals == 'tbackwardOmean':
     
    14051407        dimtf = len(uniqt)
    14061408        print '     initially we got',dimt,'values which will become',dimtf
    1407 
    14081409
    14091410    return
     
    19381939        oFillValue = None
    19391940
     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
    19401946    for kst in range(Nstsim):
    19411947        timedn = prestdescsim[kst] + 'time'
     
    20242030
    20252031# statisics sim
    2026         simstats = np.zeros((Nstsim,5), dtype=np.float)
    20272032        simstats[kst,0] = np.min(arrayvals[:,0])
    20282033        simstats[kst,1] = np.max(arrayvals[:,0])
     
    20392044        obsmask2 = obsmask*obsmask
    20402045
    2041         obsstats = np.zeros((Nstsim,5), dtype=np.float)
    20422046        obsstats[kst,0] = obsmask.min()
    20432047        obsstats[kst,1] = obsmask.max()
     
    20472051
    20482052# Statistics sim-obs
    2049         simobsstats = np.zeros((Nstsim,13), dtype=np.float)
    20502053        diffvals = np.zeros((dimt), dtype=np.float)
    20512054
     
    21022105
    21032106# Statistics around sim values
    2104         aroundstats = np.zeros((5,dimt), dtype=np.float)
    21052107        for it in range(dimt):
    21062108            aroundstats[0,it] = np.min(simobsSvalues[it,])
Note: See TracChangeset for help on using the changeset viewer.