Changeset 467 in lmdz_wrf


Ignore:
Timestamp:
Jun 9, 2015, 5:31:50 PM (9 years ago)
Author:
lfita
Message:

Fixing simulation times

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/validation_sim.py

    r466 r467  
    13001300    simtunits = 'seconds since 1949-12-01 00:00:00'
    13011301else:
    1302     tsim = osim.variables[vardims['T'][0]]
    1303     simtunits = tobj.getncattr('units')
    1304 
    1305 simobstimes = coincident_CFtimes(valdimsim['T'][:], obstunits, simtunits)
     1302    tsim = osim.variables[vardims['T'][0]][:]
     1303    otsim = osim.variables[vardims['T'][0]]
     1304    simtunits = otsim.getncattr('units')
     1305
     1306simobstimes = coincident_CFtimes(tsim, obstunits, simtunits)
    13061307
    13071308# Concident times
Note: See TracChangeset for help on using the changeset viewer.