Changeset 15196 for trunk/Mars


Ignore:
Timestamp:
03/30/13 15:59:29 (12 years ago)
Author:
tbretz
Message:
Added ORM observer and functions with fixed observer location.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/libnova/nova.h

    r15195 r15196  
    1414    typedef ln_rst_time   RstTime;
    1515
     16    const LnLatPosn &ORM()
     17    {
     18        const static LnLatPosn obs = { -(17.+53./60+26.525/3600), 28.+45./60+42.462/3600 };
     19        return obs;
     20    }
     21
    1622    HrzPosn GetHrzFromEqu(const EquPosn &obj, const LnLatPosn &obs, double jd)
    1723    {
     
    1925        ln_get_hrz_from_equ(const_cast<EquPosn*>(&obj), const_cast<LnLatPosn*>(&obs), jd, &hrz);
    2026        return hrz;
     27    }
     28    HrzPosn GetHrzFromEqu(const EquPosn &obj, double jd)
     29    {
     30        return GetHrzFromEqu(obj, ORM(), jd);
    2131    }
    2232
     
    2737        return rst;
    2838    }
     39    RstTime GetSolarRst(double jd, double hrz=LN_SOLAR_STANDART_HORIZON)
     40    {
     41        return GetSolarRst(jd, ORM(), hrz);
     42    }
    2943
    30     RstTime GetLunarRst(double jd, const LnLatPosn &obs)
     44    RstTime GetLunarRst(double jd, const LnLatPosn &obs=ORM())
    3145    {
    3246        RstTime rst;
Note: See TracChangeset for help on using the changeset viewer.