Changeset 512 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 19, 2015, 11:40:10 AM (9 years ago)
Author:
lfita
Message:

Fixing output for the exact time values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/validation_sim.py

    r511 r512  
    17191719basicvardef(newvar, 'obstime', 'exact coincident time observations and simulation', obstunits)
    17201720set_attribute(newvar, 'calendar', 'standard')
     1721print 'Lluis Nexacttvalues:',len(exacttvalues[:,3])
    17211722newvar[:] = exacttvalues[:,3]
    17221723
     
    19971998    descvar = 'exact time simulated: ' + valvars[ivar][0]
    19981999    basicvardef(newvar, valvars[ivar][0], descvar, ovobs.getncattr('units'))
     2000    print 'Lluis NEarratvals:',len(Earrayvals[:,0])
    19992001    newvar[:] = Earrayvals[:,0]
    20002002
     
    20292031        else:
    20302032            newvar = onewnc.createVariable(valvars[ivar][0] + 'around', 'f',         \
    2031               ('time','yaround','xaround'), fill_value=fillValueF)
     2033              ('betweentime','yaround','xaround'), fill_value=fillValueF)
    20322034
    20332035        descvar = 'around simulated values +/- grid values: ' + valvars[ivar][0]
     
    20402042          'stats'), fill_value=fillValueF)
    20412043        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'))
    20432046        newvar[:] = simstats
    20442047
     
    20562059        newvar = onewnc.createVariable(varsimobs + 'st', 'f', ('Nstsim', 'gstats'),  \
    20572060          fill_value=fillValueF)
    2058         descvar = 'simulated-observed statisitcs: ' + varsimobs
     2061        descvar = 'simulated-observed tatisitcs: ' + varsimobs
    20592062        basicvardef(newvar, varsimobs + 'st', descvar, ovobs.getncattr('units'))
    20602063        newvar[:] = simobsstats
     
    20632066    if not searchInlist(onewnc.variables,valvars[ivar][0] + 'staround'):
    20642067        newvar = onewnc.createVariable(valvars[ivar][0] + 'staround', 'f',           \
    2065           ('time','stats'), fill_value=fillValueF)
     2068          ('betweentime','stats'), fill_value=fillValueF)
    20662069        descvar = 'around (' +  str(Ngrid) + ', ' + str(Ngrid) +                     \
    20672070          ') simulated statisitcs: ' + valvars[ivar][0]
     
    20712074
    20722075    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 )
    20752078        set_attribute(newvar, 'calendar', 'standard')
    20762079        newvar[:] = simobsTtvalues
     
    20792082    if not searchInlist(onewnc.variables,valvars[ivar][1] + 'staround'):
    20802083        newvar = onewnc.createVariable(valvars[ivar][1] + 'staround', 'f',           \
    2081           ('time','tstats'), fill_value=fillValueF)
     2084          ('betweentime','tstats'), fill_value=fillValueF)
    20822085        descvar = 'around temporal observed statisitcs: ' + valvars[ivar][1]
    20832086        basicvardef(newvar, valvars[ivar][1] + 'staround', descvar,                  \
     
    20902093
    20912094if trjsim is not None:
    2092     newvar = onewnc.createVariable('simtrj','i',('time','simtrj'))
     2095    newvar = onewnc.createVariable('simtrj','i',('betweentime','simtrj'))
    20932096    basicvardef(newvar,'simtrj','coordinates [X,Y,Z,T] of the coincident ' +         \
    20942097      'trajectory in sim', obstunits)
Note: See TracChangeset for help on using the changeset viewer.