Click or drag to resize

SphericalHarmonicGravityModelReadFrom 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: 22.2.414.0 (22.2.414.0)
Syntax
public static SphericalHarmonicGravityModel ReadFrom(
	string fileName
)

Parameters

fileName
Type: SystemString
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 .
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 .
See Also