Changeset 15198


Ignore:
Timestamp:
03/30/13 16:04:39 (12 years ago)
Author:
tbretz
Message:
Updated to C++ wrapper
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/macros/libnova/sun.C

    r15194 r15198  
    22{
    33    TGraph gr, gs;
    4 
    5     ln_lnlat_posn observer;
    6     observer.lng = -(17.+53./60+26.525/3600);
    7     observer.lat =   28.+45./60+42.462/3600;
    84
    95    MTime t(MTime(-1).Year(), 01, 01, 00);
     
    1410    for (int d=0; d<365; d++)
    1511    {
    16         ln_rst_time sun_day;
    17         ln_get_solar_rst(jd+d, &observer, &sun_day);
     12        Nova::RstTime sun_day = Nova::GetSolarRst(jd+d);
    1813
    1914        gr.SetPoint(gr.GetN(), at+d*24*3600, (fmod(sun_day.rise, 1)-0.5)*24*3600+at);
Note: See TracChangeset for help on using the changeset viewer.