Changeset 18946 for trunk/Mars


Ignore:
Timestamp:
02/09/18 23:10:56 (7 years ago)
Author:
Daniela Dorner
Message:
allow values +-45sec from the run
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/processing/magicweather.C

    r18943 r18946  
    1717
    1818    UInt_t offset = file.GetUInt("MJDREF");
    19     //cout << "offset: " << offset << endl;
    2019    if (beg < 30000)
    2120        beg+=offset;
     
    4948    {
    5049        time += offset;
    51         //cout << time << " " << temp << endl;
    5250
    5351        if  (time>end)
     
    9694    if (cnt==0)
    9795    {
    98         if (diff>5./24/3600)
     96        //only give output if values within 45 sec before/after are available
     97        // weather reports come every ~30 sec
     98        if (diff<0 || diff>45./24/3600)
    9999            return;
    100100
    101         //only give output if values within 5 min before/after are available
    102101        cout << "result " << last_t << " 0 "  << last_h << " 0 "
    103102            << last_p << " 0 "  << last_d << " 0 "
Note: See TracChangeset for help on using the changeset viewer.