Ignore:
Timestamp:
04/22/16 10:18:45 (9 years ago)
Author:
tbretz
Message:
Added fact perion (a counter for synodic months starting with datataking)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/moon.cc

    r14308 r18467  
    183183    cout << 90-hrz.alt   << '\n';
    184184
     185    const double   kSynMonth = 29.53058868; // synodic month (new Moon to new Moon)
     186    const double   kEpoch0   = 44240.37917; // First full moon after 1980/1/1
     187    const double   kInstall  = 393;         // Moon period if FACT installation
     188    const uint32_t period    = floor(((time.Mjd()-kEpoch0)/kSynMonth-kInstall));
     189
     190    cout << period       << '\n';
    185191    cout << moon.visible << '\n';
    186192    cout << moon.disk    << '\n';
Note: See TracChangeset for help on using the changeset viewer.