Changeset 15198 for trunk/Mars/macros/libnova
- Timestamp:
- 03/30/13 16:04:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/macros/libnova/sun.C
r15194 r15198 2 2 { 3 3 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;8 4 9 5 MTime t(MTime(-1).Year(), 01, 01, 00); … … 14 10 for (int d=0; d<365; d++) 15 11 { 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); 18 13 19 14 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.