
EphemAssist
Fields:
 Ceres As Double[]
Array containing data of Ceres: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Earth As Double[]
Array containing data of Earth: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Eris As Double[]
Array containing data of Eris: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Haumea As Double[]
Array containing data of Haumea: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 IsInitialized As Boolean
 Jupiter As Double[]
Array containing data of Jupiter: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Makemake As Double[]
Array containing data of Makemake: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Mars As Double[]
Array containing data of Mars: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Mercury As Double[]
Array containing data of Mercury: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Neptune As Double[]
Array containing data of Neptune: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Planets As String[]
An array containing solar system body names.
Planets(0) = "Sun", Planets(9) = "Moon", Planets(1) to Planets(8) = "Mercury" to "Pluto" (Earth excluded).
 Pluto As Double[]
Array containing data of Pluto: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Saturn As Double[]
Array containing data of Saturn: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Uranus As Double[]
Array containing data of Uranus: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Venus As Double[]
Array containing data of Venus: a(0)=radius in km, a(1)=rotation in days, a(2)=period in days, a(3)=SMA in AU, a(4)=ecc, a(5)=mass in EU.
 Planets As String[]
An array containing solar system body names.
Planets(0) = "Sun", Planets(9) = "Moon", Planets(1) to Planets(8) = "Mercury" to "Pluto" (Earth excluded).
 pla_al As Double
Variable holding the altitude (elevation) in radians.
 pla_az As Double
Variable holding the azimuth in radians.
 pla_cm As Double
Variable holding the central meridian in radians (subEarth longitude, excludes sun and moon).
 pla_de As Double
Variable holding declination in radians.
 pla_el As Double
Variable holding the elongation angle from the sun in radians (excludes the sun).
 pla_eqd As String
Variable holding the elongation quadrant, either "W" or "E" (excludes sun and moon).
 pla_es As Double
Variable holding the angular size (diameter) of earth in arc seconds (excludes sun and moon).
 pla_geb As Double
Variable holding the geocentric ecliptical latitude in radians.
 pla_gel As Double
Variable holding the geocentric ecliptical longitude in radians.
 pla_hr As Double
Variable holding the hour angle in radians.
 pla_lh As Double
Variable holding the light time to earth in days decimal.
 pla_mage As Double
Variable holding the moon age in days (excludes sun and the planets).
 pla_mel As Double
Variable holding the maximum elevation in radians.
 pla_mv As Double
Variable holding the apparent visual magnitude.
 pla_pde As Double
Variable holding the declination in radians of Earth (subEarth latitude, excludes sun and moon).
 pla_ph As Double
Variable holding the phase angle in radians.
 pla_ra As Double
Variable holding right ascension in radians.
 pla_re As Double
Variable holding distance to earth in AU (im km for the moon).
 pla_rot As Double
Variable holding the axial rotation angle in radians (excludes sun and moon).
 pla_rs As Double
Variable holding distance to sun in AU (excludes the moon).
 pla_rse As String
Variable holding the rise time in HH:mm (excludes sun and moon).
Please use the library AstroAssist for rise/set/transit of sun and moon.
 pla_sd As Double
Variable holding the angular size (diameter) in arc seconds.
 pla_set As String
Variable holding the set time in HH:mm (excludes sun and moon).
Please use the library AstroAssist for rise/set/transit of sun and moon.
 pla_ss As Double
Variable holding the angular size (diameter) of the sun in arc seconds (excludes sun and moon).
 pla_trs As String
Variable holding the transit time in HH:mm (excludes sun and moon).
Please use the library AstroAssist for rise/set/transit of sun and moon.
 pla_vm As Double
Variable holding the orbital velocity in km/s (excludes sun).
 pla_zod As String
Variable holding the zodiac constellation.
Methods:
 Asteroid (epoch As Double, mva As Double, a As Double, ex As Double, ma As Double, nn As Double, ic As Double, kn As Double, wn As Double, when As Long) As List
Returns dwarf planet and asteroid ephemerides in a List
Elements are available from NASA Horizons http:ssd.jpl.nasa.gov/horizons.cgi
epoch: dat in Julian Date
mva: absolute magnitude (set 0 if unknown)
a: semimajor axis
ex: orbit eccentricity
ma: mean anomaly
nn: mean motion in degrees/day
ic: orbit inclination in degrees
kn: ascending node in degrees
wn: argument of perihelion in degrees
when: date in Ticks
Return type: @return:List
 Binary (when As Long, pt As Double, p As Double, a As Double, ex As Double, ic As Double, wn As Double, kn As Double, dist As Double, incn As Boolean) As Double[]
Returns binary star ephemerides in an array.
a(0) = Year decimal
a(1) = Apparent position angle in degrees
a(2) = Angular separation in arc seconds
a(3) = Linear separation in AU, if dist is provided
a(4) = Observable orbit speed (* sin(ic)) in arcsec/year
when: Date in Ticks
pt: date of periastron in year decimal
p: orbital period in year decimal
a: semimajor axis
ex: orbit eccentricity
ic: orbit inclination in degrees
wn: argument of perihelion in degrees
kn: ascending node in degrees
dist: Distance in lightyears. Pass 0 if unknown in which case the linear separation is returned as 0.
incn: True = accounts for inclination, False = does not account for inclination
 Comet (jda As Double, q As Double, ec As Double, ic As Double, kn As Double, wn As Double, m1 As Double, k1 As Double, when As Long) As List
Returns comet ephemerides in a List
Elements are available from NASA Horizons http:ssd.jpl.nasa.gov/horizons.cgi
jda: date of perihelion passage in Julian date
q: perihelion distance in AU
ex: orbit eccentricity
ic: inclination in degrees
kn: ascending node in degrees
wn: argument of perihelion in degrees
m1: magnitude (set 0 if m1 or k1 unknown)
k1: magnitude (set 0 if m1 or k1 unknown)
when: date in Ticks
Return type: @return: List
 DrawSphere (lat As Double, lon As Double, rot As Double, Diam As Int, GridCol As Int, BackCol As Int) As Bitmap
Returns a sphere grid in the form of a bitmap.
lat: center latitude in radians (such as the variable pla_pde)
lon: center longitude in radians (such as the variable pla_cm)
rot: rotation angle in radians (such as the variable pla_rot)
Diam: diameter in pixels or dip
GridCol: grid color
BackCol: background color
Return type: @return:bitmap
 GetJulianDate (x As Long) As Double
Returns the Julian Date
x: Date in Ticks
Return type: @return:Double
 GetSiderealTime (x As Long) As Double
Returns local sidereal time in decimal hours. Be sure to set the correct geographical longitude.
x: Date in Ticks
Return type: @return:Double
 HorizontalParallax (Distance As Double, Kilometer As Boolean) As Double
Returns the horizontal parallax of a body in decimal degrees.
Distance: Distance in kilometers or AUs.
Kilometer: True if distance is passed in kilometers, false if passed in AUs
Return type: @return:Double
 Initialize (aLat As Double, aLon As Double, aTZO As Double, aDST As Double)
Informs the library of location and time offsets.
Note that you can also set these parameters individually using SetXXX methods.
aLat: Latitude in degrees decimal.
aLon: Longitude in degrees decimal.
aTZO: time zone offset in degrees decimal.
aDST: Daylight saving hour.
Return type: @return:Void
 Jup_Compute (lighttime As Boolean, when As Long)
Computes the positions and ephemeris of the four Galilean satellites of Jupiter for the specified date.
lighttime: True if light time is accounted for, False if not.
when: Date in Ticks
Example:
Dim rad = 180/cPi As Double
Dim jm() as Double
Dim ep As EphemAssist
ep.Initialize( {with your local data} )
ep.JupCompute(True, DataTime.Now)
jm = ep.Jup_OrbitAngles
Log("Io: " & Round2(jm(0)*rad,1) & Chr(176))
Log("Europa: " & Round2(jm(1)*rad,1) & Chr(176))
Log("Ganymede: " & Round2(jm(2)*rad,1) & Chr(176))
Log("Callisto: " & Round2(jm(3)*rad,1) & Chr(176))
 Jup_JupiterAngSizes As Double[]
Returns an array containing the apparant angular size of Jupiter as seen from the equators of the moons in decimal degrees.
Return type: @return:array
 Jup_JupiterPhases As Double[]
Returns an array containing the phases of Jupiter as seen from the moons in decimal degrees.
Return type: @return:array
 Jup_MoonAngSizes As Double[]
Returns an array containing the apparant angular sizes of the moons as seen from the equator of Jupiter in decimal arcmin.
Return type: @return:array
 Jup_MoonDistances As Double[]
Returns an array containing the center distances between moons and Jupiter in km.
Return type: @return:array
 Jup_MoonPhases As Double[]
Returns an array containing the phases of the moons as seen from Jupiter in decimal degrees.
Return type: @return:array
 Jup_OrbitAngles As Double[]
Returns an array containing the orbital position angles in radians.
Return type: @return:array
 Jup_OrbitVelocities As Double[]
Returns an array containing the orbit velocity of the moons in km/s.
Return type: @return:array
 Jup_RadiusVectors As Double[]
Returns an array containing the orbital radius vectors in Jovian radii.
Return type: @return:array
 Jup_XPositions As Double[]
Returns an array containing the rectangular X positions in Jovian radii from the center.
Return type: @return:array
 Jup_YPositions As Double[]
Returns an array containing the rectangular Y positions in Jovian radii from the center.
Return type: @return:array
 SelectPlanet (p As Int, x As Long) As List
Returns a List containing ephemerides data.
p: object code
Sun 0, Mer 1, Ven 3, Mar 3, Jup 4, Sat 5, Ura 6, Nep 7, Plu 8, Moon 9
x: Date in Ticks
After selection of an object the variables pla_xxx are assigned values and added to the List:
Example
Dim eList As List
eList.Initialize
eList = ephem.SelectPlanet(3, DateTime.Now)
List.Get(0): pla_ra [double] right ascension in radians
List.Get(1): pla_de [double] declination in radians
List.Get(2): pla_rs [double] distance to the sun in AU (exludes Moon)
List.Get(3): pla_re [double] distance to Earth in AU (in km for the Moon)
List.Get(4): pla_lh [double] light time to Earth in days
List.Get(5): pla_sd [double] angular size in arc seconds
List.Get(6): pla_ph [double] phase in radians (excludes the sun)
List.Get(7): pla_geb [double] geocentric ecliptical latitude in radians
List.Get(8): pla_gel [double] geocentric ecliptical longitude in radians
List.Get(9): pla_zod [as string] zodiac constellation
List.Get(10): pla_el [double] elongation angle in radians
List.Get(11): pla_eqd [as string] elongation quadrant, "W" or "E"
List.Get(12): pla_vm [double] orbit velocity im km/s
List.Get(13): pla_mv [double] apparent visual magnitude
List.Get(14): pla_cm [double] central meridian in radians (subEarth longitude, excludes sun and moon)
List.Get(15): pla_pde [double] declination in radians of Earth (subEarth declination, excludes sun and moon)
List.Get(16): pla_rot [double] rotation angle in radians
List.Get(17): pla_es [double] angular size of the earth as seen from planet in arc seconds (excludes moon)
List.Get(18): pla_ss [double] angular size of the sun as seen from planet in arc seconds (excludes sun and moon)
List.Get(19): pla_mage [double] moon age in days (excludes sun and the planets)
List.Get(20): pla_hr [double] hour angle in radians
List.Get(21): pla_az [double] azimuth in radians
List.Get(22): pla_al [double] altitude in radians
List.Get(23): pla_mel [double] maximum elevation (noon altitude) in radians
List.Get(24): pla_rse [string] time of rise in HH:mm
List.Get(25): pla_set [string] time of set in HH:mm
List.Get(26): pla_trs [string] time of meridian transit in HH:mm
Properties:
 DSTValue As Double
Gets and sets daylight saving hour.
 LatitudeValue As Double
Gets and sets geographical latitude in decimal degrees.
 LongitudeValue As Double
Gets and sets geographical longitude in decimal degrees.
 TimeZoneValue As Double
Gets and sets the Time Zone (decimal hours).
Author: Requio Web Design