WorldMagneticModelVectorReadFile Method (String)
Reads a WMM file and creates a magnetic field vector from it.
Note that the final block of the InitialMagneticFieldCoefficients and MagneticFieldCoefficientRates will extend indefinitely into the future. Also, note that the units of the magnetic field vector are in tesla, the TargetPoint will still need to be set, and the magnetic field vector will be resolved in the Axes of the PrincipalFrame of Earth as obtained from the current CentralBodiesFacet unless the DefinedInFrame is set. The ReferenceDistance is set to EarthReferenceDistance, which is the official reference distance for the WMM models.
public static WorldMagneticModelVector ReadFile( string filePath )
Public Shared Function ReadFile ( filePath As String ) As WorldMagneticModelVector
public: static WorldMagneticModelVector^ ReadFile( String^ filePath )
static member ReadFile : filePath : string -> WorldMagneticModelVector
|ArgumentNullException||Thrown when filePath passed in is .|