Click or drag to resize

SphericalHarmonicGravityModel.ReadFrom Method (String)

Reads the gravity model information in from a file (most likely a .grv) and returns a SphericalHarmonicGravityModel.

Namespace:  AGI.Foundation.Celestial
Assembly:  AGI.Foundation.OrbitPropagation (in AGI.Foundation.OrbitPropagation.dll) Version: 25.1.421.0 (25.1.421.0)
Syntax
public static SphericalHarmonicGravityModel ReadFrom(
	string fileName
)

Parameters

fileName
Type: System.String
Name of the gravity file from which to read.

Return Value

Type: SphericalHarmonicGravityModel
The gravity model described in the file.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when fileName is null.
Remarks
If the .grv file contains uncommented SecularVariation RefEpochTDT and LinearRate lines, the returned gravity model will include secular variations by default. If secular variations are not desired, SecularVariations must be manually set to null.
See Also