Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Sun Class Reference
Inheritance diagram for Sun:
Inheritance graph
[legend]
Collaboration diagram for Sun:
Collaboration graph
[legend]

Public Member Functions

 Sun (const std::string &datestr="197001010000", double lon=0.0, double lat=0.0)
 
void setStarTime (const std::string &datestr)
 
void setLocation (double lon, double lat)
 

Static Public Member Functions

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. More...
 

Public Attributes

Geographical geo
 
- Public Attributes inherited from Horizontal
double azm
 
double elev
 

Member Function Documentation

◆ getSunPos()

void getSunPos ( const std::string &  datestr,
double  lonDeg,
double  latDeg,
double &  azmRad,
double &  elevRad 
)
static

Returns the sun azimuth and elevation angle at a given time in a geographical position.

Parameters
datestr- date std::string in format "YYYYmmddHHMM"
lonDeg- longitude in radians
latDeg- latitude in radians
azmRad- retrieved azimuth angle in radians
elevRad- retrieved elevation angle in radians

The documentation for this class was generated from the following files: