Class PythonPotentialCoefficientsReader
- java.lang.Object
-
- org.orekit.forces.gravity.potential.PotentialCoefficientsReader
-
- org.orekit.forces.gravity.potential.PythonPotentialCoefficientsReader
-
- All Implemented Interfaces:
DataLoader
public class PythonPotentialCoefficientsReader extends PotentialCoefficientsReader
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PythonPotentialCoefficientsReader(String supportedNames, boolean missingCoefficientsAllowed)
Simple constructor.protected
PythonPotentialCoefficientsReader(String supportedNames, boolean missingCoefficientsAllowed, TimeScale timeScale)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Part of JCC Python interface to objectRawSphericalHarmonicsProvider
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.void
pythonDecRef()
Part of JCC Python interface to objectlong
pythonExtension()
Part of JCC Python interface to objectvoid
pythonExtension(long pythonObject)
Part of JCC Python interface to object-
Methods inherited from class org.orekit.forces.gravity.potential.PotentialCoefficientsReader
buildFlatArray, buildRow, buildTriangularArray, extendListOfLists, getAe, getBaseProvider, getConstantProvider, getMaxAvailableDegree, getMaxAvailableOrder, getMaxParseDegree, getMaxParseOrder, getMu, getSupportedNames, getTideSystem, missingCoefficientsAllowed, parseCoefficient, parseCoefficient, parseCoefficient, parseDouble, rescale, rescale, rescale, setAe, setMaxParseDegree, setMaxParseOrder, setMu, setRawCoefficients, setRawCoefficients, setReadComplete, setTideSystem, stillAcceptsData, toArray, toDate, toDate
-
-
-
-
Constructor Detail
-
PythonPotentialCoefficientsReader
@DefaultDataContext protected PythonPotentialCoefficientsReader(String supportedNames, boolean missingCoefficientsAllowed)
Simple constructor.Build an uninitialized reader.
This constructor uses the
default data context
.- Parameters:
supportedNames
- regular expression for supported files namesmissingCoefficientsAllowed
- allow missing coefficients in the input data- See Also:
#PotentialCoefficientsReader(String, boolean, TimeScale)
-
PythonPotentialCoefficientsReader
protected PythonPotentialCoefficientsReader(String supportedNames, boolean missingCoefficientsAllowed, TimeScale timeScale)
Simple constructor.Build an uninitialized reader.
- Parameters:
supportedNames
- regular expression for supported files namesmissingCoefficientsAllowed
- allow missing coefficients in the input datatimeScale
- to use when parsing dates.- Since:
- 10.1
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
Part of JCC Python interface to object
-
pythonExtension
public long pythonExtension()
Part of JCC Python interface to object
-
finalize
public void finalize() throws Throwable
Part of JCC Python interface to object
-
pythonDecRef
public void pythonDecRef()
Part of JCC Python interface to object
-
loadData
public void loadData(InputStream input, String name) throws IOException, ParseException, OrekitException
Load data from a stream.- Specified by:
loadData
in interfaceDataLoader
- Specified by:
loadData
in classPotentialCoefficientsReader
- Parameters:
input
-name
-- Throws:
IOException
- if data can't be readParseException
- if data can't be parsed or if some loader specific error occursOrekitException
-
getProvider
public RawSphericalHarmonicsProvider getProvider(boolean wantNormalized, int degree, int order)
Get a provider for read spherical harmonics coefficients.- Specified by:
getProvider
in classPotentialCoefficientsReader
- Parameters:
wantNormalized
- if true, the provider will provide normalized coefficients, otherwise it will provide un-normalized coefficientsdegree
- maximal degreeorder
- maximal order- Returns:
- a new provider
- Since:
- 6.0
- See Also:
PotentialCoefficientsReader.getConstantProvider(boolean, int, int)
-
-