David's Astronomy Pages
|
Notes (S1379) |
Notes Main |
Home Page |
Notes (S1381) |
|
|
Session Aims & Highlights |
| - Observing Result - Night Summary Plot - Session Event Log |
|
|
|
Operational Issues |
| - Critical Issues (0),
Major Issues (0),
Minor Issues (0),
Small Defects (0), Continuous Improvement
(5) |
|
| - Figures (1) | |
![]() |
Images from 2025-11-28 >> |
Main aims
Equipment & Software
Highlights
Summary Plots & Logs
Observing Plan ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Observing Result |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Dome & Scope Slewing Performance | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Slew/Centering Performance | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Guiding Performance | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sky Conditions (Locate Frames) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Night Sky Summary Plot Top axis: Sky Brightness at Zenith (in ADU/s) Lefthand axis: Local Time (hh LT). Righthand axis: Sun Altitude (degs) Note: The NorthCam Star Count line is unreliable and should be ignored (The AstroNorthCam 'Find' Star method is producing many false positives from clouds) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Actual Weather vs Pre-Session Weather Forecast | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Session Event Log | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Session Alerts & Alarms | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Back to Top
https://ssd.jpl.nasa.gov/api/horizons.api?format=text&COMMAND=90004920&MAKE_EPHEM=YES&EPHEM_TYPE=OBSERVER&CENTER='500@399'&START_TIME='JD
2461011.216794'&STOP_TIME='JD 2461011.217488'&STEP_SIZE='1 m'&QUANTITIES='1
3 19 20'&REF_SYSTEM=J2000Sub GetCometRADEC(BodyID As String, utc
As DateTime,
ByRef raHours As Double, ByRef decDegs As Double,
ByRef raRate As Double, ByRef decRate As Double,
ByRef sunDistAu As Double, ByRef earthDistAu As Double)
Sub
GetCometRADEC(BodyID As String, utc As DateTime,
ByRef raHours As Double, ByRef decDegs As Double)
Sub
GetCometRateOfMotion(BodyID As String, utc As DateTime,
ByRef raRate As Double, ByRef decRate As Double) - New table column added as one-off process using the
following code line in Database.AddColumnsDB()
AddTableColumn("target", "Horizon", "varchar(12)", "") - added new variable 'HorizonBodyID' to
TTargetRecord (T) class and TActiveTarget (TS) classes
- added new
field 'txtHorizonBodyID' to the Target Form.
- added 'Use Horizon'
button (btnSetHorizonCoords) to TargetForm
- added a
btnSetHorizonCoords.Click Handler that reads coords from JPL's Horizon and
sets 'Horizon Coords'
- added txtHorizonBodyID.Text = "" line to
Target.NewTargetRecord() routine
- added T.HorizonBodyID =
objReader("HorizonBodyID") line to Database.GetTargetRow() routine
-
added T.HorizonBodyID = objReader("HorizonBodyID") line to
Database.GetActiveTargetSet() routine
- added txtHorizonBodyID.Text =
T.HorizonBodyID line to TargetForm.LoadTarget() routine
- added
T.HorizonBodyID = txtHorizonBodyID.Text line to
TargetForm.SaveTargetRecord() routine
- added sb.Append("HorizonBodyID,
") and sb.Append(DQ(T.HorizonBodyID) + ",") lines to
Database.InsertNewTarget() routine
- added sb.Append("HorizonBodyID, ")
and sb.Append(DQ(T.HorizonBodyID) + ",") lines to
Database.UpdateTarget() routine
- added code section with GetCometRADEC()
to SubmitToOForm.btnUpdateRaDecCoords_Click() routine -
added code section with GetCometRateOfMotion() to
TargetForm.btnGetNonSiderealMotion_Click() routine
- added code section
with GetCometRADEC() to Database.GetActiveTargetSet() routine
- added
code section with GetCometRADEC() to AltitudeChart.UpdateNonSiderealCoords()
routine
- added HorizonBodyID and Sky6Name variables to TObservation
Structure
- added sb.Append(" target.HorizonBodyID, target.Sky6Name, ")
line to Plan.DrawAltitudeChart- added new variable 'HorizonBodyID' to classT (T) class
- added T.HorizonBodyID = objReader("HorizonBodyID") line to
Database.RetrieveTarget() routine
- added code section to
ObsConsole.btnBuildImageTitleFromImage_Click
- added
txtTargetSky6Name.Text = "" & txtTargetHorizonBodyID.Text = "" to
ObsConole.ClearObjectTargetFields()Back to Top Issue, Back to Top
Fig 1. GetCometRADEC() routine in AstroMain 3.79
Used for acquiring RA,Dec and other data for 3I/Atlas (alias 'C/2025 N1 (ATLAS)' ) by calling the routine with BodyID = "90004920"
' Public Sub GetCometRADEC
'
========================
Public Sub GetCometRADEC(BodyID As
String, utc As DateTime, ' added 2025-12-30 (CI S1380)
ByRef
raHours As Double, ByRef decDegs As Double,
ByRef raRate As Double, ByRef decRate As Double,
ByRef sunDistAu As Double, ByRef earthDistAu As Double)
Dim SB As New StringBuilder()
Dim url As String = ""
Dim lines As Object
Dim h, mi, s As Double
Dim dd, dm, ds As Double
Dim decSign As Object
Dim inv As CultureInfo = CultureInfo.InvariantCulture
Dim startIdx As Object
Dim endIdx As Object
Dim parts As Object
Dim dataLine As String = Nothing
' Prepare Time Span
' -----------------
Dim jdUtc As Double = DateTimeToJulian(utc)
Dim jdStr As String = String.Format(CultureInfo.InvariantCulture, "{0:F6}",
jdUtc)
Dim jdStop As String = String.Format(CultureInfo.InvariantCulture, "{0:F6}",
jdUtc + 1.0 / 1440.0)
' Prepare Request
' ---------------
SB.Clear()
SB.Append("https://ssd.jpl.nasa.gov/api/horizons.api")
SB.Append("?format=text")
SB.Append("&COMMAND=" & BodyID)
SB.Append("&MAKE_EPHEM=YES&EPHEM_TYPE=OBSERVER")
SB.Append("&CENTER='500@399'") ' GEOSCENTRIC@Earth
SB.Append("&START_TIME='JD " & jdStr & "'")
SB.Append("&STOP_TIME='JD " & jdStop & "'")
SB.Append("&STEP_SIZE='1 m'")
SB.Append("&QUANTITIES='1 3 19 20'") ' Ra, Dec, Rate_Ra, Rate_Dec, SunDist,
EarthDist
SB.Append("&REF_SYSTEM=J2000")
' Create URL
' ----------
url = (SB.ToString)
' Make Request and Download responses
' ----------------------------------
Dim client As New WebClient()
Dim response As String = client.DownloadString(url)
' Split response into Lines
' --------------------------
lines = response.Split({vbCr, vbLf}, StringSplitOptions.RemoveEmptyEntries)
' Locate $$SOE/$$EOE
' ------------------
startIdx = Array.FindIndex(Of String)(lines, Function(l As String)
l.Contains("$$SOE"))
endIdx = Array.FindIndex(Of String)(lines, Function(l As String)
l.Contains("$$EOE"))
If startIdx = -1 OrElse endIdx = -1 OrElse endIdx <= startIdx Then
Throw New Exception("Horizons response missing $$SOE/$$EOE block")
End If
' Get first non-empty data line between $$SOE and $$EOE
' -------------------------------------------------
dataLine = Nothing
For i As Integer = startIdx + 1 To endIdx - 1
Dim ln = lines(i).Trim()
If ln.Length > 0 Then
dataLine = ln
Exit For
End If
Next
If dataLine Is Nothing Then Throw New Exception("No ephemeris data line
found")
' Remove "m" column (if present)
' -----------------
dataLine = dataLine.Replace(" m ", " ")
' ReportComment("Trace: " + dataLine)
' Parse the dataline
' ------------------
parts = dataLine.Split({" "}, StringSplitOptions.RemoveEmptyEntries)
' Get raHours
' -----------
h = Double.Parse(parts(2), inv)
mi = Double.Parse(parts(3), inv)
s = Double.Parse(parts(4), inv)
raHours = h + mi / 60.0 + s / 3600.0
' Get decDegs
' -----------
decSign = If(parts(5).StartsWith("-"), -1.0, 1.0)
dd = Double.Parse(parts(5).Replace("+", "").Replace("-", ""), inv)
dm = Double.Parse(parts(6), inv)
ds = Double.Parse(parts(7), inv)
decDegs = decSign * (dd + dm / 60.0 + ds / 3600.0)
' Get raRate of Motion
' --------------------
raRate = Double.Parse(parts(8), inv)
' Get decRate of Motion
' --------------------
decRate = Double.Parse(parts(9), inv)
' Get Sun/Earth Distances
' -----------------------
sunDistAu = Double.Parse(parts(10), inv)
earthDistAu = Double.Parse(parts(12), inv)
End Sub
Produces results like:
Target: 3I/ATLAS
UTC: 2025-11-30
20:35:23
RA : 12 02 17.130 (J2000)
Dec: +00 24 57.80 (J2000)
Sun
distance : 1.80 AU
Earth distance: 1.91 AU (286.2 million km)
| This Web Page: | Notes - Session 1380 (2025-11-28) |
| Last Updated : | 2025-12-21 |
| Site Owner : | David Richards |
| Home Page : | David's Astronomy Web Site |