Changeset 515 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 19, 2015, 12:09:38 PM (10 years ago)
Author:
lfita
Message:

Fixing the right computation of the mean time-steps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/validation_sim.py

    r514 r515  
    11501150    elif kvals == 'tbackwardSmean':
    11511151        print '  ' + fname + ':',kvals,'!!'
    1152         dimt = len(tvalues[:,3])
    1153         print '    : initially we got',dimt0,'values which will become',dimt
     1152        uniqt = np.unique(tvalues[:,3])
     1153        dimt = len(uniqt)
     1154        print '    initially we got',dimt0,'values which will become',dimt
    11541155        quit()
    11551156    elif kvals == 'tbackwardOmean':
    11561157        print '  ' + fname + ':',kvals,'!!'
    1157         dimt = len(tvalues[:,2])
    1158         print '    : initially we got',dimt0,'values which will become',dimt
     1158        uniqt = np.unique(tvalues[:,2])
     1159        dimt = len(uniqt)
     1160        print '     initially we got',dimt0,'values which will become',dimt
    11591161    else:
    11601162        print errormsg
     
    18351837    simobsvalues, simobsSvalues, simobsTvalues, simobsTtvalues, trjsim =             \
    18361838        getting_ValidationValues(obskind, Ncoindt, dims, trajpos, ovsim, ovobs,      \
    1837         coindtvalues, oFillValue, Ngrid, 'tbackwardaverage')
     1839        coindtvalues, oFillValue, Ngrid, 'tbackwardSmean')
    18381840
    18391841# Re-arranging values...
Note: See TracChangeset for help on using the changeset viewer.