Changeset 342 in lmdz_wrf for trunk/tools/nc_var_tools.py


Ignore:
Timestamp:
Mar 9, 2015, 4:16:11 PM (10 years ago)
Author:
lfita
Message:

Fixing problem with wrong data-difference conversion on .days!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r336 r342  
    27042704
    27052705                        difft = self.firstTt - secondTt
    2706                         self.dt = difft.days/(3600.*24.) + difft.seconds +           \
     2706                        self.dt = difft.days*3600.*24. + difft.seconds +             \
    27072707                          difft.microseconds/10.e6
    27082708
    27092709                        difft = self.firstTt - self.refdate
    2710                         self.firstTu = difft.days/(3600.*24.) + difft.seconds +      \
     2710                        self.firstTu = difft.days*3600.*24. + difft.seconds +        \
    27112711                          difft.microseconds/10.e6
    27122712                        difft = self.lastTt - self.refdate
    2713                         self.lastTu = difft.days/(3600.*24.) + difft.seconds +       \
     2713                        self.lastTu = difft.days*3600.*24. + difft.seconds +         \
    27142714                          difft.microseconds/10.e6
    27152715
Note: See TracChangeset for help on using the changeset viewer.