[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orekit Users] Using EGM96 with DSSTPropagator



Hello,

the Eigen-6S model is the default model if you use the default "orekit-data.zip".
If you want to use a specific model, I think it's better to load it explicitly.
I'm a basic user of Orekit so my method is probably not the best one... But I give you the extract of the piece of code I use to load a specific model.

    /**   
     * Load data from ICGEM file.
     */
    public void loadDataBase(String filename) throws OrekitException, IOException, ParseException {

        // Prepare the provider
        if (filename.isEmpty())    filename = "egm96.gfc";
        GravityFieldFactory.clearPotentialCoefficientsReaders();
        GravityFieldFactory.addPotentialCoefficientsReader(new ICGEMFormatReader(filename, true));
        provider = GravityFieldFactory.getConstantNormalizedProvider(this.degree, this.order);
    }

As far as I can remember, the handling of the data sets is explained in the Wiki, in the "Configuration" section.

I hope it will help you to understand how to load your geopotential model.

Christophe



2016-03-12 22:02 GMT+01:00 <joseph.huwaldt@dynetics.com>:
I've been evaluating Orekit for use at my company.  I am very impressed.  It
appears to be very high quality software. I do have a few questions.  Here is
the first.

I want to use the EGM96 gravity model (with the WGS84 ellipsoid) in
combination with the DSSTPropagator.  But, I can't seem to get there.  It is
trivial to use the EGM96 coefficients with the EcksteinHechlerPropagator, but
I'm not seeing how to get there with the DSSTPropagator (or the
NumericalPropagator for that matter).

I see that I can use DSSTPropagator.addForceModel() to add a DSSTCentralBody
using a UnnormalizedSphericalHarmonicsProvider to supply the gravity model.
In the examples, that in turn is created using
GravityFieldFactory.getUnnormalizedProvider(degree,order).  However, that
seems to return a EIGEN-6S model.  How do I get an EGM96 model?

Any help would be appreciated.  Thanks!

Ad astra,

Joseph Huwaldt
Dynetics, Inc.
Huntsville, AL