1 /* Copyright 2002-2026 CS GROUP
2 * Licensed to CS GROUP (CS) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * CS licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17 package org.orekit.estimation.measurements.generation;
18
19 import java.util.Map;
20
21 import org.orekit.estimation.measurements.AngularAzEl;
22 import org.orekit.estimation.measurements.GroundStation;
23 import org.orekit.estimation.measurements.MeasurementQuality;
24 import org.orekit.estimation.measurements.ObservableSatellite;
25 import org.orekit.propagation.sampling.OrekitStepInterpolator;
26 import org.orekit.signal.SignalTravelTimeModel;
27 import org.orekit.time.AbsoluteDate;
28
29 /** Builder for {@link AngularAzEl} measurements.
30 * @author Luc Maisonobe
31 * @since 9.3
32 */
33 public class AngularAzElBuilder extends AbstractSignalBasedBuilder<AngularAzEl> {
34
35 /** Station performing measurement. */
36 private final GroundStation station;
37
38 /** Simple constructor.
39 * @param station ground station from which measurement is performed
40 * @param sigma theoretical standard deviation
41 * @param baseWeight base weight
42 * @param satellite satellite related to this builder
43 */
44 public AngularAzElBuilder(final GroundStation station,
45 final double[] sigma, final double[] baseWeight, final ObservableSatellite satellite) {
46 this(station, new MeasurementQuality(sigma, baseWeight), new SignalTravelTimeModel(), satellite);
47 }
48
49 /** Simple constructor.
50 * @param station ground station from which measurement is performed
51 * @param measurementQuality measurement quality as used in estimation (in Orekit, the crossed-terms
52 * of the covariance matrix are only used by Kalman filters, not least squares)
53 * @param signalTravelTimeModel signal travel time model
54 * @param satellite satellite related to this builder
55 * @since 14.0
56 */
57 public AngularAzElBuilder(final GroundStation station,
58 final MeasurementQuality measurementQuality,
59 final SignalTravelTimeModel signalTravelTimeModel, final ObservableSatellite satellite) {
60 super(measurementQuality, signalTravelTimeModel, satellite);
61 this.station = station;
62 }
63
64 /**
65 * Getter for station.
66 * @return station
67 */
68 public GroundStation getStation() {
69 return station;
70 }
71
72 /** {@inheritDoc} */
73 @Override
74 protected AngularAzEl buildObserved(final AbsoluteDate date,
75 final Map<ObservableSatellite, OrekitStepInterpolator> interpolators) {
76 return new AngularAzEl(station, date, new double[2], getMeasurementQuality(), getSignalTravelTimeModel(), getSatellites()[0]);
77 }
78
79 }