Sun
 

| HOME | BACK |

Overview

Sun class is for the sun in the solar system.  Once it is initialized, by inputting a date and time, any time between the years 1902 to 2050, its ephemeris data are automatically determined and stored with the sun object. The ephemeris data are declination, right ascension, equation of time, sun distance and sun diameter.   This information is useful in modeling, for example to compute the observed position of the sun on earth, or to compute incident angle of sun ray on earth and so on.

 

Member data

Name data type Meaning
date Date date and time at which the sun is being interested
decl double sun declination
ra double sun right ascension
EqofTime double equation of time
dist double sun earth distance
diameter double sun diameter

Please note that ephemeris data of a sun object are computed only at the construction function and when using an "init" function.  Changing the value of date of member data, using an L function, will not affect the ephemeris.

 

Operator

no operator provided.

 

Construction function

{Sun} ret  =  SUN([{Date} argm1])

argm1 = Date, in which time in included 

        (default = default of Date())

Example:

->S = Sun()

 

Lfunction

object.DATE()     =  {Date} left-value

object.DECL()     =  {double} left-value

object.RA()       =  {double} left-value

object.EQOFTIME(){double} left-value

object.DIST()     =  {double} left-value

object.DIAMETER(){double} left-value

Example:

->S.decl() = deg(50.301256)

 

Class function

 ALT  AZI DATE DECL DIAMETER
 DIST  EQOFTIME HOURANG INCDANG INIT
 RA        

 


| HOME | BACK |