4 #include <libnova/solar.h> 5 #include <libnova/lunar.h> 6 #include <libnova/rise_set.h> 7 #include <libnova/transform.h> 8 #include <libnova/angular_separation.h> 33 ZdAzPosn(
double z=0,
double a=0) : zd(z), az(a) { }
55 RaDecPosn(
double r=0,
double d=0) : ra(r), dec(d) { }
66 const LnLatPosn &
ORM()
71 const static LnLatPosn obs = { -(17.+53./60+26.525/3600), 28.+45./60+42.462/3600 };
78 ln_get_hrz_from_equ(const_cast<EquPosn*>(&equ), const_cast<LnLatPosn*>(&obs), jd, &hrz);
89 ln_get_equ_from_hrz(const_cast<HrzPosn*>(&hrz), const_cast<LnLatPosn*>(&obs), jd, &equ);
97 RstTime
GetSolarRst(
double jd,
const LnLatPosn &obs,
double hrz=LN_SOLAR_STANDART_HORIZON)
100 ln_get_solar_rst_horizon(jd, const_cast<LnLatPosn*>(&obs), hrz, &rst);
103 RstTime
GetSolarRst(
double jd,
double hrz=LN_SOLAR_STANDART_HORIZON)
111 ln_get_lunar_rst(jd, const_cast<LnLatPosn*>(&obs), &rst);
117 ln_get_solar_equ_coords(jd, &equ);
123 return ln_get_lunar_disk(jd);
128 return ln_get_lunar_sdiam(jd);
133 return ln_get_lunar_phase(jd);
139 ln_get_lunar_equ_coords_prec(jd, &equ, precision);
145 return ln_get_lunar_earth_dist(jd);
150 return ln_get_angular_separation(const_cast<EquPosn*>(&p1), const_cast<EquPosn*>(&p2));
155 EquPosn p1; p1.ra=h1.az; p1.dec=h1.alt;
156 EquPosn p2; p2.ra=h2.az; p2.dec=h2.alt;
157 return ln_get_angular_separation(&p1, &p2);
double GetLunarPhase(double jd)
RaDecPosn(const EquPosn &equ)
EquPosn GetLunarEquCoords(double jd, double precision=0)
ZdAzPosn(double z=0, double a=0)
SolarObjects(const double &jd, const LnLatPosn &obs=Nova::ORM())
double GetLunarDisk(double jd)
double GetLunarSdiam(double jd)
ZdAzPosn(const HrzPosn &hrz)
RstTime GetLunarRst(double jd, const LnLatPosn &obs=ORM())
RstTime GetSolarRst(double jd, const LnLatPosn &obs, double hrz=LN_SOLAR_STANDART_HORIZON)
HrzPosn GetHrzFromEqu(const EquPosn &equ, const LnLatPosn &obs, double jd)
EquPosn GetEquFromHrz(const HrzPosn &hrz, const LnLatPosn &obs, double jd)
double GetAngularSeparation(const EquPosn &p1, const EquPosn &p2)
double GetLunarEarthDist(double jd)
RaDecPosn(double r=0, double d=0)
EquPosn GetSolarEquCoords(double jd)