CelestrakGeneralPerturbationElements Class |
Namespace: AGI.Foundation.Propagators
The CelestrakGeneralPerturbationElements type exposes the following members.
Name | Description | |
---|---|---|
CelestrakGeneralPerturbationElements | Initializes a new instance. | |
CelestrakGeneralPerturbationElements(CelestrakGeneralPerturbationElements) | Initializes a new instance as a copy of an existing instance. | |
CelestrakGeneralPerturbationElements(Sgp4Elements, String, String, String, String, Double, Double, Int32, Int32, Int32) |
Initializes a new instance from a set of Sgp4Elements and additional
meta-data contained in a Celestrak General Perturbation file.
|
Name | Description | |
---|---|---|
ArgumentOfPerigee |
Gets or sets the argument of perigee, in degrees.
(Inherited from Sgp4Elements.) | |
BStar |
Gets or sets the BSTAR drag term, in units of 1 / EarthRadii.
This term represents a modification of the ballistic coefficient
(Coefficient of drag times area over mass). The value is modified
by one half atmospheric density and expressed in units of inverse
Earth radii. Source: https://celestrak.com/ (Inherited from Sgp4Elements.) | |
Classification |
Gets or sets the classification.
| |
Eccentricity |
Gets or sets the eccentricity
(Inherited from Sgp4Elements.) | |
ElementNumber |
Gets or sets the element number.
| |
EphemerisType |
Gets or sets the ephemeris type. Ephemeris Type 0 is the correct type for Sgp4Propagator.
Ephemeris type 4 is not supported by Sgp4Propagator, and it will throw an argument exception
if a CelestrakGeneralPerturbationElements has ephemeris type 4.
| |
Epoch |
Gets or sets the epoch at which these initial conditions are defined.
(Inherited from Sgp4Elements.) | |
Inclination |
Gets or sets the inclination, in degrees
(Inherited from Sgp4Elements.) | |
InternationalDesignator |
Gets or sets the international designator.
| |
MeanAnomaly |
Gets or sets the mean anomaly, in degrees.
(Inherited from Sgp4Elements.) | |
MeanMotion |
Gets or sets the mean motion, in revolutions per day.
(Inherited from Sgp4Elements.) | |
MeanMotionDot |
Gets or sets the first derivative of mean motion divided by two, in revolutions per day squared.
| |
MeanMotionDotDot |
Gets or sets the second derivative of mean motion divided by six, in revolutions per day cubed.
| |
Name |
Gets or sets the spacecraft name.
| |
RawEpoch |
Gets or sets the epoch at which these initial conditions are defined,
represented in the standard form: YYDDD.DDDD. Note: this will
be represented to as much precision as possible and will not reflect
the RawEpoch taken from a
TwoLineElementSet format. To represent the correct
precision for a TLE, use the TwoLineElementSet type instead.
(Inherited from Sgp4Elements.) | |
RevolutionNumber |
Gets or sets the revolution number at epoch.
| |
RightAscensionOfAscendingNode |
Gets or sets the right ascension of the ascending node, in degrees
(Inherited from Sgp4Elements.) | |
SatelliteNumber |
Gets or sets the satellite number.
| |
SwitchingMethod |
Gets or sets the method to use when switching between this element set and the following element set.
By default, this is Sgp4ElementsSwitchByEpoch.
(Inherited from Sgp4Elements.) |
Name | Description | |
---|---|---|
Clone |
Clones this object using the specified context.
(Overrides Sgp4ElementsClone(CopyContext).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReadFromCsvFile(String) |
Reads the Celestrak General Perturbation elements in from a file (most likely a .csv).
| |
ReadFromCsvFile(TextReader) |
Reads the Celestrak General Perturbation elements in from a file (most likely a .csv).
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Warning: If the EphemerisType is 4, Sgp4Propagator will throw an exception if the Celestrak GP elements is input.
The following example shows how to create a Sgp4Propagator from a CSV-format Celestrak General Perturbation elements file.
// Header for CELESTRAK General Perturbation elements CSV file. const string csvGpHeader = "OBJECT_NAME,OBJECT_ID,EPOCH,MEAN_MOTION,ECCENTRICITY,INCLINATION," + "RA_OF_ASC_NODE,ARG_OF_PERICENTER,MEAN_ANOMALY,EPHEMERIS_TYPE," + "CLASSIFICATION_TYPE,NORAD_CAT_ID,ELEMENT_SET_NO,REV_AT_EPOCH,BSTAR," + "MEAN_MOTION_DOT,MEAN_MOTION_DDOT"; const string csvGpRowOne = "UNKNOWN,1987-068,2020-06-23T04:36:00.383904,14.29842842,.0066057,82.6660," + "87.5455,38.3103,322.2748,0,U,81409,999,34254,.46387E-3,1.238E-5,0"; var builder = new StringBuilder(); builder.AppendLine(csvGpHeader); builder.AppendLine(csvGpRowOne); Sgp4Propagator propagator; using (var reader = new StringReader(builder.ToString())) { var csvGpList = CelestrakGeneralPerturbationElements.ReadFromCsvFile(reader); var csvGp = csvGpList[0]; propagator = new Sgp4Propagator(csvGp); }