38 #include "drain/util/Geo.h"
70 Sun(
const std::string & datestr =
"197001010000",
double lon=0.0,
double lat=0.0){
72 setLocation(lon, lat);
84 void getSunPos(
const std::string & datestr,
double lonDeg,
double latDeg,
double & azmRad,
double & elevRad);
89 void setStarTime(
const std::string & datestr){
91 double jDate = JDate(datestr.c_str());
94 starTime = Sidereal_GW(jDate) * 15.0 * drain::DEG2RAD;
95 Solar_coords(jDate, equ);
102 void setLocation(
double lon,
double lat){
107 Solar_pos(starTime, geo, equ, *
this);
145 static double JDate(
const char *datestr);
148 static double Sidereal_GW(
double JD);
153 void Solar_coords(
double JD,
Equatorial & equ);
static void getSunPos(const std::string &datestr, double lonDeg, double latDeg, double &azmRad, double &elevRad)
Returns the sun azimuth and elevation angle at a given time in a geographical position.
Definition: Sun.cpp:54
Definition: DataSelector.cpp:44