Commit 5600aca5 authored by Luc Maisonobe's avatar Luc Maisonobe

Merge branch 'issue-498' into develop

parents 0b386fbe 82ab1f43
......@@ -175,6 +175,9 @@
<contributor>
<name>Espen Bj&#248;rntvedt</name>
</contributor>
<contributor>
<name>Bryan Cazabonne</name>
</contributor>
<contributor>
<name>Paul Cefola</name>
</contributor>
......
......@@ -218,7 +218,10 @@ public enum OrekitMessages implements Localizable {
DIMENSION_INCONSISTENT_WITH_PARAMETERS("dimension {0} is inconsistent with parameters list: {1}"),
NOT_A_SUPPORTED_UNIX_COMPRESSED_FILE("file {0} is not a supported Unix-compressed file"),
UNEXPECTED_END_OF_FILE("unexpected end of file {0}"),
CORRUPTED_FILE("file {0} is corrupted");
CORRUPTED_FILE("file {0} is corrupted"),
VIENNA_ACOEF_OR_ZENITH_DELAY_NOT_LOADED("Vienna coefficients ah or aw or zh or zw could not be loaded from {0}"),
VIENNA_ACOEF_OR_ZENITH_DELAY_NOT_AVAILABLE_FOR_DATE("Vienna coefficients ah or aw or zh or zw not available for date {0}"),
NO_VIENNA_ACOEF_OR_ZENITH_DELAY_IN_FILE("file {0} does not contain Vienna coefficients ah, aw, zh or zw");
// CHECKSTYLE: resume JavadocVariable check
......
......@@ -16,7 +16,6 @@
*/
package org.orekit.estimation.measurements.modifiers;
import java.util.Collections;
import java.util.List;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
......@@ -26,7 +25,7 @@ import org.orekit.estimation.measurements.EstimatedMeasurement;
import org.orekit.estimation.measurements.EstimationModifier;
import org.orekit.estimation.measurements.GroundStation;
import org.orekit.frames.Frame;
import org.orekit.models.earth.TroposphericModel;
import org.orekit.models.earth.DiscreteTroposphericModel;
import org.orekit.propagation.SpacecraftState;
import org.orekit.time.AbsoluteDate;
import org.orekit.utils.Constants;
......@@ -47,13 +46,13 @@ import org.orekit.utils.ParameterDriver;
public class AngularTroposphericDelayModifier implements EstimationModifier<AngularAzEl> {
/** Tropospheric delay model. */
private final TroposphericModel tropoModel;
private final DiscreteTroposphericModel tropoModel;
/** Constructor.
*
* @param model Tropospheric delay model appropriate for the current angular measurement method.
*/
public AngularTroposphericDelayModifier(final TroposphericModel model) {
public AngularTroposphericDelayModifier(final DiscreteTroposphericModel model) {
tropoModel = model;
}
......@@ -89,7 +88,7 @@ public class AngularTroposphericDelayModifier implements EstimationModifier<Angu
final double height = getStationHeightAMSL(station);
// delay in meters
final double delay = tropoModel.pathDelay(elevation, height);
final double delay = tropoModel.pathDelay(elevation, height, tropoModel.getParameters(), state.getDate());
// one-way measurement.
return delay;
......@@ -101,7 +100,7 @@ public class AngularTroposphericDelayModifier implements EstimationModifier<Angu
/** {@inheritDoc} */
@Override
public List<ParameterDriver> getParametersDrivers() {
return Collections.emptyList();
return tropoModel.getParametersDrivers();
}
@Override
......
......@@ -17,17 +17,22 @@
package org.orekit.estimation.measurements.modifiers;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.hipparchus.Field;
import org.hipparchus.RealFieldElement;
import org.hipparchus.analysis.differentiation.DerivativeStructure;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import org.orekit.estimation.measurements.EstimatedMeasurement;
import org.orekit.estimation.measurements.EstimationModifier;
import org.orekit.estimation.measurements.GroundStation;
import org.orekit.estimation.measurements.RangeRate;
import org.orekit.models.earth.DiscreteTroposphericModel;
import org.orekit.models.earth.TroposphericModel;
import org.orekit.orbits.OrbitType;
import org.orekit.orbits.PositionAngle;
import org.orekit.propagation.FieldSpacecraftState;
import org.orekit.propagation.Propagator;
import org.orekit.propagation.SpacecraftState;
import org.orekit.utils.Differentiation;
......@@ -49,7 +54,7 @@ import org.orekit.utils.StateFunction;
public class RangeRateTroposphericDelayModifier implements EstimationModifier<RangeRate> {
/** Tropospheric delay model. */
private final TroposphericModel tropoModel;
private final DiscreteTroposphericModel tropoModel;
/** Two-way measurement factor. */
private final double fTwoWay;
......@@ -59,7 +64,7 @@ public class RangeRateTroposphericDelayModifier implements EstimationModifier<Ra
* @param model Tropospheric delay model appropriate for the current range-rate measurement method.
* @param tw Flag indicating whether the measurement is two-way.
*/
public RangeRateTroposphericDelayModifier(final TroposphericModel model, final boolean tw) {
public RangeRateTroposphericDelayModifier(final DiscreteTroposphericModel model, final boolean tw) {
tropoModel = model;
if (tw) {
fTwoWay = 2.;
......@@ -79,6 +84,18 @@ public class RangeRateTroposphericDelayModifier implements EstimationModifier<Ra
return height;
}
/** Get the station height above mean sea level.
* @param <T> type of the element
* @param field field of the elements
* @param station ground station (or measuring station)
* @return the measuring station height above sea level, m
*/
private <T extends RealFieldElement<T>> T getStationHeightAMSL(final Field<T> field, final GroundStation station) {
// FIXME heigth should be computed with respect to geoid WGS84+GUND = EGM2008 for example
final T height = station.getBaseFrame().getPoint(field).getAltitude();
return height;
}
/** Compute the measurement error due to Troposphere.
* @param station station
* @param state spacecraft state
......@@ -105,7 +122,7 @@ public class RangeRateTroposphericDelayModifier implements EstimationModifier<Ra
// only consider measures above the horizon
if (elevation1 > 0) {
// tropospheric delay in meters
final double d1 = tropoModel.pathDelay(elevation1, height);
final double d1 = tropoModel.pathDelay(elevation1, height, tropoModel.getParameters(), state.getDate());
// propagate spacecraft state forward by dt
final SpacecraftState state2 = state.shiftedBy(dt);
......@@ -119,7 +136,7 @@ public class RangeRateTroposphericDelayModifier implements EstimationModifier<Ra
state2.getDate());
// tropospheric delay dt after
final double d2 = tropoModel.pathDelay(elevation2, height);
final double d2 = tropoModel.pathDelay(elevation2, height, tropoModel.getParameters(), state2.getDate());
return fTwoWay * (d2 - d1) / dt;
}
......@@ -128,16 +145,68 @@ public class RangeRateTroposphericDelayModifier implements EstimationModifier<Ra
}
/** Compute the Jacobian of the delay term wrt state.
*
/** Compute the measurement error due to Troposphere.
* @param <T> type of the element
* @param station station
* @param refstate spacecraft state
* @param delay current tropospheric delay
* @return Jacobian of the delay wrt state
* @param state spacecraft state
* @param parameters tropospheric model parameters
* @return the measurement error due to Troposphere
*/
public <T extends RealFieldElement<T>> T rangeRateErrorTroposphericModel(final GroundStation station,
final FieldSpacecraftState<T> state,
final T[] parameters) {
// Field
final Field<T> field = state.getDate().getField();
final T zero = field.getZero();
// The effect of tropospheric correction on the range rate is
// computed using finite differences.
final double dt = 10; // s
// station altitude AMSL in meters
final T height = getStationHeightAMSL(field, station);
// spacecraft position and elevation as seen from the ground station
final FieldVector3D<T> position = state.getPVCoordinates().getPosition();
final T elevation1 = station.getBaseFrame().getElevation(position,
state.getFrame(),
state.getDate());
// only consider measures above the horizon
if (elevation1.getReal() > 0) {
// tropospheric delay in meters
final T d1 = tropoModel.pathDelay(elevation1, height, parameters, state.getDate());
// propagate spacecraft state forward by dt
final FieldSpacecraftState<T> state2 = state.shiftedBy(dt);
// spacecraft position and elevation as seen from the ground station
final FieldVector3D<T> position2 = state2.getPVCoordinates().getPosition();
// elevation
final T elevation2 = station.getBaseFrame().getElevation(position2,
state2.getFrame(),
state2.getDate());
// tropospheric delay dt after
final T d2 = tropoModel.pathDelay(elevation2, height, parameters, state2.getDate());
return (d2.subtract(d1)).divide(dt).multiply(fTwoWay);
}
return zero;
}
/** Compute the Jacobian of the delay term wrt state.
*
* @param station station
* @param refstate spacecraft state
* @return Jacobian of the delay wrt state
*/
private double[][] rangeRateErrorJacobianState(final GroundStation station,
final SpacecraftState refstate,
final double delay) {
final SpacecraftState refstate) {
final double[][] finiteDifferencesJacobian =
Differentiation.differentiate(new StateFunction() {
public double[] value(final SpacecraftState state) {
......@@ -152,18 +221,33 @@ public class RangeRateTroposphericDelayModifier implements EstimationModifier<Ra
return finiteDifferencesJacobian;
}
/** Compute the Jacobian of the delay term wrt state using
* automatic differentiation.
*
* @param derivatives tropospheric delay derivatives
* @param freeStateParameters dimension of the state.
*
* @return Jacobian of the delay wrt state
*/
private double[][] rangeRateErrorJacobianState(final double[] derivatives, final int freeStateParameters) {
final double[][] finiteDifferencesJacobian = new double[1][6];
for (int i = 0; i < freeStateParameters; i++) {
// First element is the value of the delay
finiteDifferencesJacobian[0][i] = derivatives[i + 1];
}
return finiteDifferencesJacobian;
}
/** Compute the derivative of the delay term wrt parameters.
*
* @param station ground station
* @param driver driver for the station offset parameter
* @param state spacecraft state
* @param delay current ionospheric delay
* @return derivative of the delay wrt station offset parameter
*/
private double rangeRateErrorParameterDerivative(final GroundStation station,
final ParameterDriver driver,
final SpacecraftState state,
final double delay) {
final SpacecraftState state) {
final ParameterFunction rangeError = new ParameterFunction() {
/** {@inheritDoc} */
......@@ -180,10 +264,31 @@ public class RangeRateTroposphericDelayModifier implements EstimationModifier<Ra
}
/** Compute the derivative of the delay term wrt parameters using
* automatic differentiation.
*
* @param derivatives tropospheric delay derivatives
* @param freeStateParameters dimension of the state.
* @return derivative of the delay wrt tropospheric model parameters
*/
private double[] rangeRateErrorParameterDerivative(final double[] derivatives, final int freeStateParameters) {
// 0 -> value of the delay
// 1 ... freeStateParameters -> derivatives of the delay wrt state
// freeStateParameters + 1 ... n -> derivatives of the delay wrt tropospheric parameters
final int dim = derivatives.length - 1 - freeStateParameters;
final double[] rangeError = new double[dim];
for (int i = 0; i < dim; i++) {
rangeError[i] = derivatives[1 + freeStateParameters + i];
}
return rangeError;
}
/** {@inheritDoc} */
@Override
public List<ParameterDriver> getParametersDrivers() {
return Collections.emptyList();
return tropoModel.getParametersDrivers();
}
/** {@inheritDoc} */
......@@ -195,18 +300,21 @@ public class RangeRateTroposphericDelayModifier implements EstimationModifier<Ra
final double[] oldValue = estimated.getEstimatedValue();
final double delay = rangeRateErrorTroposphericModel(station, state);
// update estimated value taking into account the tropospheric delay.
// The tropospheric delay is directly added to the range.
final double[] newValue = oldValue.clone();
newValue[0] = newValue[0] + delay;
estimated.setEstimatedValue(newValue);
// update estimated derivatives with Jacobian of the measure wrt state
final double[][] djac = rangeRateErrorJacobianState(station,
state,
delay);
final TroposphericDSConverter converter = new TroposphericDSConverter(state, 6, Propagator.DEFAULT_LAW);
final FieldSpacecraftState<DerivativeStructure> dsState = converter.getState(tropoModel);
final DerivativeStructure[] dsParameters = converter.getParameters(dsState, tropoModel);
final DerivativeStructure dsDelay = rangeRateErrorTroposphericModel(station, dsState, dsParameters);
final double[] derivatives = dsDelay.getAllDerivatives();
double[][] djac = new double[1][6];
// This implementation will disappear when the implementations of TroposphericModel
// will directly be implementations of DiscreteTroposphericModel
if (tropoModel instanceof TroposphericModel) {
djac = rangeRateErrorJacobianState(station, state);
} else {
djac = rangeRateErrorJacobianState(derivatives, converter.getFreeStateParameters());
}
final double[][] stateDerivatives = estimated.getStateDerivatives(0);
for (int irow = 0; irow < stateDerivatives.length; ++irow) {
for (int jcol = 0; jcol < stateDerivatives[0].length; ++jcol) {
......@@ -215,6 +323,19 @@ public class RangeRateTroposphericDelayModifier implements EstimationModifier<Ra
}
estimated.setStateDerivatives(0, stateDerivatives);
int index = 0;
for (final ParameterDriver driver : getParametersDrivers()) {
if (driver.isSelected()) {
// update estimated derivatives with derivative of the modification wrt tropospheric parameters
double parameterDerivative = estimated.getParameterDerivatives(driver)[0];
final double[] dDelaydP = rangeRateErrorParameterDerivative(derivatives, converter.getFreeStateParameters());
parameterDerivative += dDelaydP[index];
estimated.setParameterDerivatives(driver, parameterDerivative);
index += 1;
}
}
for (final ParameterDriver driver : Arrays.asList(station.getClockOffsetDriver(),
station.getEastOffsetDriver(),
station.getNorthOffsetDriver(),
......@@ -222,11 +343,17 @@ public class RangeRateTroposphericDelayModifier implements EstimationModifier<Ra
if (driver.isSelected()) {
// update estimated derivatives with derivative of the modification wrt station parameters
double parameterDerivative = estimated.getParameterDerivatives(driver)[0];
parameterDerivative += rangeRateErrorParameterDerivative(station, driver, state, delay);
parameterDerivative += rangeRateErrorParameterDerivative(station, driver, state);
estimated.setParameterDerivatives(driver, parameterDerivative);
}
}
// update estimated value taking into account the tropospheric delay.
// The tropospheric delay is directly added to the range.
final double[] newValue = oldValue.clone();
newValue[0] = newValue[0] + dsDelay.getReal();
estimated.setEstimatedValue(newValue);
}
}
......@@ -17,17 +17,22 @@
package org.orekit.estimation.measurements.modifiers;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.hipparchus.Field;
import org.hipparchus.RealFieldElement;
import org.hipparchus.analysis.differentiation.DerivativeStructure;
import org.hipparchus.geometry.euclidean.threed.FieldVector3D;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import org.orekit.estimation.measurements.EstimatedMeasurement;
import org.orekit.estimation.measurements.EstimationModifier;
import org.orekit.estimation.measurements.GroundStation;
import org.orekit.estimation.measurements.Range;
import org.orekit.models.earth.DiscreteTroposphericModel;
import org.orekit.models.earth.TroposphericModel;
import org.orekit.orbits.OrbitType;
import org.orekit.orbits.PositionAngle;
import org.orekit.propagation.FieldSpacecraftState;
import org.orekit.propagation.Propagator;
import org.orekit.propagation.SpacecraftState;
import org.orekit.utils.Differentiation;
......@@ -49,13 +54,13 @@ import org.orekit.utils.StateFunction;
public class RangeTroposphericDelayModifier implements EstimationModifier<Range> {
/** Tropospheric delay model. */
private final TroposphericModel tropoModel;
private final DiscreteTroposphericModel tropoModel;
/** Constructor.
*
* @param model Tropospheric delay model appropriate for the current range measurement method.
*/
public RangeTroposphericDelayModifier(final TroposphericModel model) {
public RangeTroposphericDelayModifier(final DiscreteTroposphericModel model) {
tropoModel = model;
}
......@@ -70,6 +75,18 @@ public class RangeTroposphericDelayModifier implements EstimationModifier<Range>
return height;
}
/** Get the station height above mean sea level.
* @param <T> type of the elements
* @param field field of the elements
* @param station ground station (or measuring station)
* @return the measuring station height above sea level, m
*/
private <T extends RealFieldElement<T>> T getStationHeightAMSL(final Field<T> field, final GroundStation station) {
// FIXME heigth should be computed with respect to geoid WGS84+GUND = EGM2008 for example
final T height = station.getBaseFrame().getPoint(field).getAltitude();
return height;
}
/** Compute the measurement error due to Troposphere.
* @param station station
* @param state spacecraft state
......@@ -90,7 +107,7 @@ public class RangeTroposphericDelayModifier implements EstimationModifier<Range>
final double height = getStationHeightAMSL(station);
// delay in meters
final double delay = tropoModel.pathDelay(elevation, height);
final double delay = tropoModel.pathDelay(elevation, height, tropoModel.getParameters(), state.getDate());
return delay;
}
......@@ -98,41 +115,91 @@ public class RangeTroposphericDelayModifier implements EstimationModifier<Range>
return 0;
}
/** Compute the Jacobian of the delay term wrt state.
*
/** Compute the measurement error due to Troposphere.
* @param <T> type of the element
* @param station station
* @param refstate reference spacecraft state
*
* @return Jacobian of the delay wrt state
* @param state spacecraft state
* @param parameters tropospheric model parameters
* @return the measurement error due to Troposphere
*/
private <T extends RealFieldElement<T>> T rangeErrorTroposphericModel(final GroundStation station,
final FieldSpacecraftState<T> state,
final T[] parameters) {
// Field
final Field<T> field = state.getDate().getField();
final T zero = field.getZero();
// satellite elevation
final FieldVector3D<T> position = state.getPVCoordinates().getPosition();
final T elevation = station.getBaseFrame().getElevation(position,
state.getFrame(),
state.getDate());
// only consider measures above the horizon
if (elevation.getReal() > 0) {
// altitude AMSL in meters
final T height = getStationHeightAMSL(field, station);
// delay in meters
final T delay = tropoModel.pathDelay(elevation, height, parameters, state.getDate());
return delay;
}
return zero;
}
/** Compute the Jacobian of the delay term wrt state using
* automatic differentiation.
*
* @param derivatives tropospheric delay derivatives
* @param freeStateParameters dimension of the state.
*
* @return Jacobian of the delay wrt state
*/
private double[][] rangeErrorJacobianState(final double[] derivatives, final int freeStateParameters) {
final double[][] finiteDifferencesJacobian = new double[1][6];
for (int i = 0; i < freeStateParameters; i++) {
// First element is the value of the delay
finiteDifferencesJacobian[0][i] = derivatives[i + 1];
}
return finiteDifferencesJacobian;
}
/** Compute the Jacobian of the delay term wrt state.
*
* @param station station
* @param refstate reference spacecraft state
*
* @return Jacobian of the delay wrt state
*/
private double[][] rangeErrorJacobianState(final GroundStation station, final SpacecraftState refstate) {
final double[][] finiteDifferencesJacobian =
Differentiation.differentiate(new StateFunction() {
public double[] value(final SpacecraftState state) {
// evaluate target's elevation with a changed target position
final double value = rangeErrorTroposphericModel(station, state);
Differentiation.differentiate(new StateFunction() {
public double[] value(final SpacecraftState state) {
// evaluate target's elevation with a changed target position
final double value = rangeErrorTroposphericModel(station, state);
return new double[] {value };
}
}, 1, Propagator.DEFAULT_LAW, OrbitType.CARTESIAN,
PositionAngle.TRUE, 15.0, 3).value(refstate);
return new double[] {value };
}
}, 1, Propagator.DEFAULT_LAW, OrbitType.CARTESIAN,
PositionAngle.TRUE, 15.0, 3).value(refstate);
return finiteDifferencesJacobian;
}
/** Compute the derivative of the delay term wrt parameters.
*
* @param station ground station
* @param driver driver for the station offset parameter
* @param state spacecraft state
* @param delay current ionospheric delay
* @return derivative of the delay wrt station offset parameter
*/
private double rangeErrorParameterDerivative(final GroundStation station,
final ParameterDriver driver,
final SpacecraftState state,
final double delay) {
final SpacecraftState state) {
final ParameterFunction rangeError = new ParameterFunction() {
/** {@inheritDoc} */
......@@ -149,10 +216,31 @@ public class RangeTroposphericDelayModifier implements EstimationModifier<Range>
}
/** Compute the derivative of the delay term wrt parameters using
* automatic differentiation.
*
* @param derivatives tropospheric delay derivatives
* @param freeStateParameters dimension of the state.
* @return derivative of the delay wrt tropospheric model parameters
*/
private double[] rangeErrorParameterDerivative(final double[] derivatives, final int freeStateParameters) {
// 0 -> value of the delay
// 1 ... freeStateParameters -> derivatives of the delay wrt state
// freeStateParameters + 1 ... n -> derivatives of the delay wrt tropospheric parameters
final int dim = derivatives.length - 1 - freeStateParameters;
final double[] rangeError = new double[dim];
for (int i = 0; i < dim; i++) {
rangeError[i] = derivatives[1 + freeStateParameters + i];
}
return rangeError;
}
/** {@inheritDoc} */
@Override
public List<ParameterDriver> getParametersDrivers() {
return Collections.emptyList();
return tropoModel.getParametersDrivers();
}
/** {@inheritDoc} */
......@@ -164,17 +252,22 @@ public class RangeTroposphericDelayModifier implements EstimationModifier<Range>
final double[] oldValue = estimated.getEstimatedValue();
final double delay = rangeErrorTroposphericModel(station, state);
// update estimated derivatives with Jacobian of the measure wrt state
final TroposphericDSConverter converter = new TroposphericDSConverter(state, 6, Propagator.DEFAULT_LAW);
final FieldSpacecraftState<DerivativeStructure> dsState = converter.getState(tropoModel);
final DerivativeStructure[] dsParameters = converter.getParameters(dsState, tropoModel);
final DerivativeStructure dsDelay = rangeErrorTroposphericModel(station, dsState, dsParameters);
final double[] derivatives = dsDelay.getAllDerivatives();
// update estimated value taking into account the tropospheric delay.
// The tropospheric delay is directly added to the range.
final double[] newValue = oldValue.clone();
newValue[0] = newValue[0] + delay;
estimated.setEstimatedValue(newValue);
double[][] djac = new double[1][6];
// This implementation will disappear when the implementations of TroposphericModel
// will directly be implementations of DiscreteTroposphericModel
if (tropoModel instanceof TroposphericModel) {
djac = rangeErrorJacobianState(station, state);
} else {
djac = rangeErrorJacobianState(derivatives, converter.getFreeStateParameters());
}
// update estimated derivatives with Jacobian of the measure wrt state
final double[][] djac = rangeErrorJacobianState(station,
state);
final double[][] stateDerivatives = estimated.getStateDerivatives(0);
for (int irow = 0; irow < stateDerivatives.length; ++irow) {
for (int jcol = 0; jcol < stateDerivatives[0].length; ++jcol) {
......@@ -183,6 +276,19 @@ public class RangeTroposphericDelayModifier implements EstimationModifier<Range>
}
estimated.setStateDerivatives(0, stateDerivatives);
int index = 0;
for (final ParameterDriver driver : getParametersDrivers()) {
if (driver.isSelected()) {
// update estimated derivatives with derivative of the modification wrt tropospheric parameters
double parameterDerivative = estimated.getParameterDerivatives(driver)[0];
final double[] dDelaydP = rangeErrorParameterDerivative(derivatives, converter.getFreeStateParameters());
parameterDerivative += dDelaydP[index];
estimated.setParameterDerivatives(driver, parameterDerivative);
index = index + 1;
}
}
for (final ParameterDriver driver : Arrays.asList(station.getClockOffsetDriver(),
station.getEastOffsetDriver(),
station.getNorthOffsetDriver(),
......@@ -190,11 +296,17 @@ public class RangeTroposphericDelayModifier implements EstimationModifier<Range>
if (driver.isSelected()) {
// update estimated derivatives with derivative of the modification wrt station parameters
double parameterDerivative = estimated.getParameterDerivatives(driver)[0];
parameterDerivative += rangeErrorParameterDerivative(station, driver, state, delay);
parameterDerivative += rangeErrorParameterDerivative(station, driver, state);
estimated.setParameterDerivatives(driver, parameterDerivative);
}
}
// update estimated value taking into account the tropospheric delay.
// The tropospheric delay is directly added to the range.
final double[] newValue = oldValue.clone();
newValue[0] = newValue[0] + dsDelay.getReal();
estimated.setEstimatedValue(newValue);