SofaCreateAstrom Method

Return a fully initialised Astrom struct. Only required for frameworks earlier than .NET 8.

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static SofaAstrom CreateAstrom()

Return Value

SofaAstrom
An Astrom struct with the eb[3], eh[3], v[3] and bpn[9] arrays present and initialised to zero values.

Remarks

The SOFA bpn array is a 3x3 matrix stored in row-major order. This is depicted as a C array: bpn[3][3]. The managed array is a single-dimensional array of length 9 with elements in the order: [0] = bpn[0,0], [1] = bpn[0,1], [2] = bpn[0,2], [3] = bpn[1,0], [4] = bpn[1,1], [5] = bpn[1,2], [6] = bpn[2,0], [7] = bpn[2,1] and [8] = bpn[2,2].

Version Information

.NET Standard

Supported in: 2.0

See Also