public class GRGSFormatReader extends PotentialCoefficientsReader
This format was used to describe various gravity fields at GRGS (Toulouse).
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.
GravityFields
Constructor and Description |
---|
GRGSFormatReader(String supportedNames,
boolean missingCoefficientsAllowed)
Simple constructor.
|
GRGSFormatReader(String supportedNames,
boolean missingCoefficientsAllowed,
TimeScale timeScale)
Simple constructor.
|
Modifier and Type | Method and 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.
|
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, toDate
@DefaultDataContext public GRGSFormatReader(String supportedNames, boolean missingCoefficientsAllowed)
This constructor uses the default data context
.
supportedNames
- regular expression for supported files namesmissingCoefficientsAllowed
- if true, allows missing coefficients in the input dataGRGSFormatReader(String, boolean, TimeScale)
public GRGSFormatReader(String supportedNames, boolean missingCoefficientsAllowed, TimeScale timeScale)
supportedNames
- regular expression for supported files namesmissingCoefficientsAllowed
- if true, allows missing coefficients in the input
datatimeScale
- to use when parsing dates.public 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)
GRGS fields may include time-dependent parts which are taken into account in the returned 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-2020 CS GROUP. All rights reserved.