Changeset 15210


Ignore:
Timestamp:
03/31/13 02:55:45 (12 years ago)
Author:
tbretz
Message:
Updated to use new nova C++ wrapper
File:
1 edited

Legend:

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

    r14885 r15210  
    1 #include <libnova/solar.h>
     1#include "externals/nova.h"
    22#include <libnova/lunar.h>
    33#include <libnova/rise_set.h>
     
    156156    vector<mysqlpp::Row>::const_iterator row=res.begin();
    157157
    158     ln_equ_posn pos;
     158    Nova::EquPosn pos;
    159159    pos.ra  = double((*row)[0])*15;
    160160    pos.dec = double((*row)[1]);
     
    170170
    171171        // 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);
    174173
    175174        // Get moon properties and
    176         ln_equ_posn moon = fMoonCoords[i].first;
     175        const Nova::EquPosn moon = fMoonCoords[i].first;
    177176        const double disk = fMoonCoords[i].second;
    178177
    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);
    181179
    182180        // Distance between source and moon
Note: See TracChangeset for help on using the changeset viewer.