Commit c589ab9e authored by Evan Ward's avatar Evan Ward
Browse files

Merge branch 'data-context' into 'develop'

Allow creating Geoid w/o default data context

See merge request orekit/orekit!252
parents 9d380509 83ca3974
......@@ -36,6 +36,9 @@
<action dev="louis" type="add" issue="888">
Added J2-contribution for relativistic clock correction.
</action>
<action dev="evan" type="update">
Allow creating Geoid without default data context.
</action>
<action dev="louis" type="add" issue="759">
Added data loaders for Space Environment's JB2008 data.
</action>
......
......@@ -30,7 +30,6 @@ import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Line;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import org.hipparchus.util.FastMath;
import org.orekit.annotation.DefaultDataContext;
import org.orekit.bodies.FieldGeodeticPoint;
import org.orekit.bodies.GeodeticPoint;
import org.orekit.errors.OrekitException;
......@@ -169,7 +168,6 @@ public class Geoid implements EarthShape {
* @throws NullPointerException if {@code geopotential == null ||
* referenceEllipsoid == null}
*/
@DefaultDataContext
public Geoid(final NormalizedSphericalHarmonicsProvider geopotential,
final ReferenceEllipsoid referenceEllipsoid) {
// parameter check
......@@ -185,7 +183,7 @@ public class Geoid implements EarthShape {
this.referenceEllipsoid = referenceEllipsoid;
this.harmonics = new HolmesFeatherstoneAttractionModel(
referenceEllipsoid.getBodyFrame(), potential);
this.defaultDate = AbsoluteDate.J2000_EPOCH;
this.defaultDate = AbsoluteDate.ARBITRARY_EPOCH;
}
@Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment