DataLoader
public class EGMFormatReader extends PotentialCoefficientsReader
The proper way to use this class is to call the GravityFieldFactory
which will determine which reader to use with the selected gravity field file.
GravityFieldFactory
Constructor | Description |
---|---|
EGMFormatReader(String supportedNames,
boolean missingCoefficientsAllowed) |
Simple constructor.
|
EGMFormatReader(String supportedNames,
boolean missingCoefficientsAllowed,
boolean useWgs84Coefficients) |
Simple constructor that allows overriding 'standard' EGM96 ae and mu with
WGS84 variants.
|
Modifier and Type | Method | Description |
---|---|---|
RawSphericalHarmonicsProvider |
getProvider(boolean wantNormalized,
int degree,
int order) |
Get a provider for read spherical harmonics coefficients.
|
void |
loadData(InputStream input,
String name) |
Load data from a stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildRow, buildTriangularArray, extendListOfLists, getAe, getConstantProvider, getMaxAvailableDegree, getMaxAvailableOrder, getMaxParseDegree, getMaxParseOrder, getMu, getSupportedNames, getTideSystem, missingCoefficientsAllowed, parseCoefficient, parseCoefficient, parseDouble, rescale, setAe, setMaxParseDegree, setMaxParseOrder, setMu, setRawCoefficients, setReadComplete, setTideSystem, stillAcceptsData, toArray
public EGMFormatReader(String supportedNames, boolean missingCoefficientsAllowed)
supportedNames
- regular expression for supported files namesmissingCoefficientsAllowed
- if true, allows missing coefficients in the input datapublic EGMFormatReader(String supportedNames, boolean missingCoefficientsAllowed, boolean useWgs84Coefficients)
supportedNames
- regular expression for supported files namesmissingCoefficientsAllowed
- if true, allows missing coefficients in the input datauseWgs84Coefficients
- if true, the WGS84 values will be used for equatorial radius
and central attraction coefficientpublic void loadData(InputStream input, String name) throws IOException, ParseException, OrekitException
loadData
in interface DataLoader
loadData
in class PotentialCoefficientsReader
input
- data input streamname
- name of the file (or zip entry)IOException
- if data can't be readParseException
- if data can't be parsed
or if some loader specific error occursOrekitException
public RawSphericalHarmonicsProvider getProvider(boolean wantNormalized, int degree, int order)
EGM fields don't include time-dependent parts, so this method returns directly a constant provider.
getProvider
in class PotentialCoefficientsReader
wantNormalized
- if true, the provider will provide normalized coefficients,
otherwise it will provide un-normalized coefficientsdegree
- maximal degreeorder
- maximal orderPotentialCoefficientsReader.getConstantProvider(boolean, int, int)
Copyright © 2002-2019 CS Systèmes d'information. All rights reserved.