Changeset 14308


Ignore:
Timestamp:
08/02/12 16:12:18 (12 years ago)
Author:
tbretz
Message:
Added the distance to the sun... the sun's zd needs to be checked... it seems it is not correctly calculated below the horizon.
File:
1 edited

Legend:

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

    r14307 r14308  
    172172    observer.lat =   28.+45./60+42.462/3600;
    173173
    174     const Moon moon(observer.lng, observer.lat, time);
     174    Moon moon(observer.lng, observer.lat, time);
    175175
    176176    cout << setprecision(15);
     
    192192        pos.dec = conf.Get<double>("dec");
    193193
    194         ln_get_hrz_from_equ(&pos, &observer, time.JD(), &hrz);
     194        cout << moon.Angle(pos.ra/15, pos.dec) << '\n';
     195
     196        // Trick 17
     197        moon.ra  = pos.ra;
     198        moon.dec = pos.dec;
     199
     200        // Sun distance
    195201        cout << moon.Angle(pos.ra/15, pos.dec) << '\n';
    196202    }
Note: See TracChangeset for help on using the changeset viewer.