Changeset 15210
- Timestamp:
- 03/31/13 02:55:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/makedata.cc
r14885 r15210 1 #include <libnova/solar.h>1 #include "externals/nova.h" 2 2 #include <libnova/lunar.h> 3 3 #include <libnova/rise_set.h> … … 156 156 vector<mysqlpp::Row>::const_iterator row=res.begin(); 157 157 158 ln_equ_posn pos;158 Nova::EquPosn pos; 159 159 pos.ra = double((*row)[0])*15; 160 160 pos.dec = double((*row)[1]); … … 170 170 171 171 // get local position of source 172 ln_hrz_posn hrz; 173 ln_get_hrz_from_equ(&pos, &observer, jd+h, &hrz); 172 const Nova::HrzPosn hrz = Nova::GetHrzFromEqu(pos, jd+h); 174 173 175 174 // Get moon properties and 176 ln_equ_posn moon= fMoonCoords[i].first;175 const Nova::EquPosn moon = fMoonCoords[i].first; 177 176 const double disk = fMoonCoords[i].second; 178 177 179 ln_hrz_posn hrzm; 180 ln_get_hrz_from_equ(&moon, &observer, jd+h, &hrzm); 178 const Nova::HrzPosn hrzm = Nova::GetHrzFromEqu(moon, jd+h); 181 179 182 180 // Distance between source and moon
Note:
See TracChangeset
for help on using the changeset viewer.