Changeset 510 in lmdz_wrf


Ignore:
Timestamp:
Jun 17, 2015, 4:28:33 PM (9 years ago)
Author:
lfita
Message:

Fixing right time-difference in closest of 'DatesFiles?'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r509 r510  
    1594515945
    1594615946                DT = endT - iniT
    15947                 diffitv = DT.total_seconds()
    15948 
    15949                 if diffT > DT.total_seconds():
     15947                diffitv = np.abs(DT.total_seconds())
     15948
     15949                if diffT > diffitv:
    1595015950                    istep = ncobjs[fn].index(it)
    1595115951                    print fname + 'Closest:',dtv,fn,istep,diffitv,'(date, ' +        \
Note: See TracChangeset for help on using the changeset viewer.