Commit 19d4304e authored by Evan Ward's avatar Evan Ward
Browse files

Allow creating Geoid w/o default data context

Previously the only constructor for Geoid used the default data context
because it chose J2000 as the default epoch. Updated that to use
AbsoluteDate.ARBITRARY_EPOCH so that it no longer uses the default data
parent f88afee6
......@@ -33,6 +33,9 @@
<action dev="louis" type="add" issue="888">
Added J2-contribution for relativistic clock correction.
<action dev="evan" type="update">
Allow creating Geoid without default data context.
<action dev="louis" type="add" issue="759">
Added data loaders for Space Environment's JB2008 data.
......@@ -169,7 +169,6 @@ public class Geoid implements EarthShape {
* @throws NullPointerException if {@code geopotential == null ||
* referenceEllipsoid == null}
public Geoid(final NormalizedSphericalHarmonicsProvider geopotential,
final ReferenceEllipsoid referenceEllipsoid) {
// parameter check
......@@ -185,7 +184,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;
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