org.orekit.forces.gravity.potential
Class EGMFormatReader

java.lang.Object
  extended by org.orekit.forces.gravity.potential.PotentialCoefficientsReader
      extended by org.orekit.forces.gravity.potential.EGMFormatReader
All Implemented Interfaces:
DataLoader, PotentialCoefficientsProvider

public class EGMFormatReader
extends PotentialCoefficientsReader

This reader is adapted to the EGM Format.

The proper way to use this class is to call the GravityFieldFactory which will determine which reader to use with the selected potential coefficients file

Author:
Fabien Maussion
See Also:
GravityFieldFactory

Field Summary
 
Fields inherited from class org.orekit.forces.gravity.potential.PotentialCoefficientsReader
ae, mu, normalizedC, normalizedJ, normalizedS, readCompleted
 
Constructor Summary
EGMFormatReader(String supportedNames, boolean missingCoefficientsAllowed)
          Simple constructor.
 
Method Summary
 void loadData(InputStream input, String name)
          Load data from a stream.
 
Methods inherited from class org.orekit.forces.gravity.potential.PotentialCoefficientsReader
getAe, getC, getJ, getMu, getS, getSupportedNames, missingCoefficientsAllowed, stillAcceptsData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EGMFormatReader

public EGMFormatReader(String supportedNames,
                       boolean missingCoefficientsAllowed)
Simple constructor.

Parameters:
supportedNames - regular expression for supported files names
missingCoefficientsAllowed - if true, allows missing coefficients in the input data
Method Detail

loadData

public void loadData(InputStream input,
                     String name)
              throws IOException,
                     ParseException,
                     OrekitException
Load data from a stream.

Specified by:
loadData in interface DataLoader
Specified by:
loadData in class PotentialCoefficientsReader
Parameters:
input - data input stream
name - name of the file (or zip entry)
Throws:
IOException - if data can't be read
ParseException - if data can't be parsed
OrekitException - if some data is missing or if some loader specific error occurs


Copyright © 2016 CNES. All Rights Reserved.