Changeset 14307 for trunk/FACT++/src
- Timestamp:
- 08/02/12 15:42:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/moon.cc
r14188 r14307 45 45 observer.lng = lon; 46 46 observer.lat = lat; 47 48 //observer.lng.degrees = -5;49 //observer.lng.minutes = 36;50 //observer.lng.seconds = 30;51 //observer.lat.degrees = 42;52 //observer.lat.minutes = 35;53 //observer.lat.seconds = 40;54 47 55 48 ln_rst_time moon; … … 137 130 #if BOOST_VERSION >= 104200 138 131 ->required() 139 #endif 132 #endif 140 133 , "SQL time (UTC)") 141 134 ; … … 183 176 cout << setprecision(15); 184 177 cout << time.GetAsStr() << '\n'; 185 cout << moon.visible << '\n'; 186 cout << moon.disk << '\n'; 187 cout << moon.zd << '\n'; 178 179 ln_equ_posn pos; 180 ln_hrz_posn hrz; 181 ln_get_solar_equ_coords(time.JD(), &pos); 182 ln_get_hrz_from_equ(&pos, &observer, time.JD(), &hrz); 183 cout << 90-hrz.alt << '\n'; 184 185 cout << moon.visible << '\n'; 186 cout << moon.disk << '\n'; 187 cout << moon.zd << '\n'; 188 188 189 189 if (conf.Has("ra") && conf.Has("dec")) 190 190 { 191 ln_equ_posn pos;192 191 pos.ra = conf.Get<double>("ra")*15; 193 192 pos.dec = conf.Get<double>("dec"); 194 193 195 ln_hrz_posn hrz;196 194 ln_get_hrz_from_equ(&pos, &observer, time.JD(), &hrz); 197 195 cout << moon.Angle(pos.ra/15, pos.dec) << '\n';
Note:
See TracChangeset
for help on using the changeset viewer.