org.orekit.forces.gravity.potential
Class SHMFormatReader
java.lang.Object
org.orekit.forces.gravity.potential.PotentialCoefficientsReader
org.orekit.forces.gravity.potential.SHMFormatReader
- All Implemented Interfaces:
- DataLoader, PotentialCoefficientsProvider
public class SHMFormatReader
- extends PotentialCoefficientsReader
Reader for the SHM gravity field format.
This format was used to describe the gravity field of EIGEN models
published by the GFZ Potsdam up to 2003. It was then replaced by
ICGEM format
. The SHM format is described in
Potsdam university
website.
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
Constructor Summary |
SHMFormatReader(String supportedNames,
boolean missingCoefficientsAllowed)
Simple constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHMFormatReader
public SHMFormatReader(String supportedNames,
boolean missingCoefficientsAllowed)
- Simple constructor.
- Parameters:
supportedNames
- regular expression for supported files namesmissingCoefficientsAllowed
- if true, allows missing coefficients in the input data
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 streamname
- 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 © 2017 CNES. All Rights Reserved.