public final class EarthGravitationalModelFactory extends Object
Factory class for earth gravitational model. This factory provides earth gravitational model by giving the potential file name, the degree and the order.
BalminoAttractionModel
,
CunninghamAttractionModel
,
DrozinerAttractionModel
,
GravityFieldFactory
final ForceModel model = EarthGravitationalModelFactory.getGravitationalModel(potentialFileName, n, m);
Modifier and Type | Class and Description |
---|---|
static class |
EarthGravitationalModelFactory.GravityFieldNames
Gravity field names enumerate.
|
Modifier and Type | Method and Description |
---|---|
static ForceModel |
getBalmino(EarthGravitationalModelFactory.GravityFieldNames potentialFileName,
String filename,
int n,
int m,
boolean missingCoefficientsAllowed)
Create an instance of a central body attraction with normalized coefficients, Helmholtz Polynomials (Balmino
model) and specific data.
|
static ForceModel |
getCunningham(EarthGravitationalModelFactory.GravityFieldNames potentialFileName,
String filename,
int n,
int m,
boolean missingCoefficientsAllowed)
Create an instance of the gravitational field of a celestial body using Cunningham model and specific data.
|
static ForceModel |
getDroziner(EarthGravitationalModelFactory.GravityFieldNames potentialFileName,
String filename,
int n,
int m,
boolean missingCoefficientsAllowed)
Create an instance of the gravitational field of a celestial body using Droziner model and specific data.
|
static ForceModel |
getGravitationalModel(EarthGravitationalModelFactory.GravityFieldNames potentialFileName,
String filename,
int n,
int m)
Create an default instance of a gravitational field of a celestial body using Balmino model and specific data.
|
static ForceModel |
getGravitationalModel(EarthGravitationalModelFactory.GravityFieldNames potentialFileName,
String filename,
int n,
int m,
boolean missingCoefficientsAllowed)
Create an default instance of a gravitational field of a celestial body using Balmino model and specific data.
|
public static ForceModel getGravitationalModel(EarthGravitationalModelFactory.GravityFieldNames potentialFileName, String filename, int n, int m) throws IOException, ParseException, PatriusException
potentialFileName
- the gravity field namefilename
- gravity data filenamen
- the degreem
- the orderIOException
- if data can't be readParseException
- if data can't be parsedPatriusException
- if some data is missing or if some loader specific error occursBalminoAttractionModel
public static ForceModel getGravitationalModel(EarthGravitationalModelFactory.GravityFieldNames potentialFileName, String filename, int n, int m, boolean missingCoefficientsAllowed) throws IOException, ParseException, PatriusException
potentialFileName
- the gravity field namefilename
- gravity data filenamen
- the degreem
- the ordermissingCoefficientsAllowed
- if true, allows missing coefficients in the input dataIOException
- if data can't be readParseException
- if data can't be parsedPatriusException
- if some data is missing or if some loader specific error occursBalminoAttractionModel
public static ForceModel getBalmino(EarthGravitationalModelFactory.GravityFieldNames potentialFileName, String filename, int n, int m, boolean missingCoefficientsAllowed) throws IOException, ParseException, PatriusException
potentialFileName
- the gravity field namefilename
- gravity data filenamen
- the degreem
- the ordermissingCoefficientsAllowed
- if true, allows missing coefficients in the input dataIOException
- if data can't be readParseException
- if data can't be parsedPatriusException
- if some data is missing or if some loader specific error occursBalminoAttractionModel
public static ForceModel getCunningham(EarthGravitationalModelFactory.GravityFieldNames potentialFileName, String filename, int n, int m, boolean missingCoefficientsAllowed) throws IOException, ParseException, PatriusException
potentialFileName
- the gravity field namefilename
- gravity data filenamen
- the degreem
- the ordermissingCoefficientsAllowed
- if true, allows missing coefficients in the input dataIOException
- if data can't be readParseException
- if data can't be parsedPatriusException
- if some data is missing or if some loader specific error occursCunninghamAttractionModel
public static ForceModel getDroziner(EarthGravitationalModelFactory.GravityFieldNames potentialFileName, String filename, int n, int m, boolean missingCoefficientsAllowed) throws IOException, ParseException, PatriusException
potentialFileName
- the gravity field namefilename
- gravity data filenamen
- the degreem
- the ordermissingCoefficientsAllowed
- if true, allows missing coefficients in the input dataIOException
- if data can't be readParseException
- if data can't be parsedPatriusException
- if some data is missing or if some loader specific error occursDrozinerAttractionModel
Copyright © 2018 CNES. All Rights Reserved.