Package org.orekit.propagation.events
Class FieldElevationDetector<T extends org.hipparchus.RealFieldElement<T>>
- java.lang.Object
-
- org.orekit.propagation.events.FieldAbstractDetector<FieldElevationDetector<T>,T>
-
- org.orekit.propagation.events.FieldElevationDetector<T>
-
- All Implemented Interfaces:
FieldEventDetector<T>
public class FieldElevationDetector<T extends org.hipparchus.RealFieldElement<T>> extends FieldAbstractDetector<FieldElevationDetector<T>,T>
Finder for satellite raising/setting events that allows for the setting of azimuth and/or elevation bounds or a ground azimuth/elevation mask input. Each calculation be configured to use atmospheric refraction as well.The default implementation behavior is to
continue
propagation at raising and tostop
propagation at setting. This can be changed by callingFieldAbstractDetector.withHandler(FieldEventHandler)
after construction.- Author:
- Hank Grabowski
-
-
Field Summary
-
Fields inherited from class org.orekit.propagation.events.FieldAbstractDetector
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description FieldElevationDetector(org.hipparchus.Field<T> field, TopocentricFrame topo)
Creates an instance of Elevation detector based on passed in topocentric frame and the minimum elevation angle.FieldElevationDetector(T maxCheck, T threshold, TopocentricFrame topo)
Creates an instance of Elevation detector based on passed in topocentric frame and overrides of default maximal checking interval and convergence threshold values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FieldElevationDetector<T>
create(T newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<? super FieldElevationDetector<T>,T> newHandler)
Build a new instance.T
g(FieldSpacecraftState<T> s)
Compute the value of the switching function.ElevationMask
getElevationMask()
Returns the currently configured elevation mask.double
getMinElevation()
Returns the currently configured minimum valid elevation value.AtmosphericRefractionModel
getRefractionModel()
Returns the currently configured refraction model.TopocentricFrame
getTopocentricFrame()
Returns the currently configured topocentric frame definitions.FieldElevationDetector<T>
withConstantElevation(double newMinElevation)
Setup the minimum elevation for detection.FieldElevationDetector<T>
withElevationMask(ElevationMask newElevationMask)
Setup the elevation mask for detection using the passed in mask object.FieldElevationDetector<T>
withRefraction(AtmosphericRefractionModel newRefractionModel)
Setup the elevation detector to use an atmospheric refraction model in its calculations.-
Methods inherited from class org.orekit.propagation.events.FieldAbstractDetector
eventOccurred, getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, resetState, withHandler, withMaxCheck, withMaxIter, withThreshold
-
-
-
-
Constructor Detail
-
FieldElevationDetector
public FieldElevationDetector(org.hipparchus.Field<T> field, TopocentricFrame topo)
Creates an instance of Elevation detector based on passed in topocentric frame and the minimum elevation angle.uses default values for maximal checking interval (
FieldAbstractDetector.DEFAULT_MAXCHECK
) and convergence threshold (FieldAbstractDetector.DEFAULT_THRESHOLD
).- Parameters:
field
- type of the elementstopo
- reference to a topocentric model- See Also:
withConstantElevation(double)
,withElevationMask(ElevationMask)
,withRefraction(AtmosphericRefractionModel)
-
FieldElevationDetector
public FieldElevationDetector(T maxCheck, T threshold, TopocentricFrame topo)
Creates an instance of Elevation detector based on passed in topocentric frame and overrides of default maximal checking interval and convergence threshold values.- Parameters:
maxCheck
- maximum checking interval (s)threshold
- maximum divergence threshold (s)topo
- reference to a topocentric model- See Also:
withConstantElevation(double)
,withElevationMask(ElevationMask)
,withRefraction(AtmosphericRefractionModel)
-
-
Method Detail
-
create
protected FieldElevationDetector<T> create(T newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<? super FieldElevationDetector<T>,T> newHandler)
Build a new instance.- Specified by:
create
in classFieldAbstractDetector<FieldElevationDetector<T extends org.hipparchus.RealFieldElement<T>>,T extends org.hipparchus.RealFieldElement<T>>
- Parameters:
newMaxCheck
- maximum checking interval (s)newThreshold
- convergence threshold (s)newMaxIter
- maximum number of iterations in the event time searchnewHandler
- event handler to call at event occurrences- Returns:
- a new instance of the appropriate sub-type
-
getElevationMask
public ElevationMask getElevationMask()
Returns the currently configured elevation mask.- Returns:
- elevation mask
(null if instance has been configured with
withConstantElevation(double)
- See Also:
withElevationMask(ElevationMask)
-
getMinElevation
public double getMinElevation()
Returns the currently configured minimum valid elevation value.- Returns:
- minimum elevation value
(
Double.NaN
if instance has been configured withwithElevationMask(ElevationMask)
- See Also:
withConstantElevation(double)
-
getRefractionModel
public AtmosphericRefractionModel getRefractionModel()
Returns the currently configured refraction model.- Returns:
- refraction model
- See Also:
withRefraction(AtmosphericRefractionModel)
-
getTopocentricFrame
public TopocentricFrame getTopocentricFrame()
Returns the currently configured topocentric frame definitions.- Returns:
- topocentric frame definition
-
g
public T g(FieldSpacecraftState<T> s)
Compute the value of the switching function. This function measures the difference between the current elevation (and azimuth if necessary) and the reference mask or minimum value.- Specified by:
g
in interfaceFieldEventDetector<T extends org.hipparchus.RealFieldElement<T>>
- Specified by:
g
in classFieldAbstractDetector<FieldElevationDetector<T extends org.hipparchus.RealFieldElement<T>>,T extends org.hipparchus.RealFieldElement<T>>
- Parameters:
s
- the current state information: date, kinematics, attitude- Returns:
- value of the switching function
-
withConstantElevation
public FieldElevationDetector<T> withConstantElevation(double newMinElevation)
Setup the minimum elevation for detection.This will override an elevation mask if it has been configured as such previously.
- Parameters:
newMinElevation
- minimum elevation for visibility in radians (rad)- Returns:
- a new detector with updated configuration (the instance is not changed)
- Since:
- 6.1
- See Also:
getMinElevation()
-
withElevationMask
public FieldElevationDetector<T> withElevationMask(ElevationMask newElevationMask)
Setup the elevation mask for detection using the passed in mask object.- Parameters:
newElevationMask
- elevation mask to use for the computation- Returns:
- a new detector with updated configuration (the instance is not changed)
- Since:
- 6.1
- See Also:
getElevationMask()
-
withRefraction
public FieldElevationDetector<T> withRefraction(AtmosphericRefractionModel newRefractionModel)
Setup the elevation detector to use an atmospheric refraction model in its calculations.To disable the refraction when copying an existing elevation detector, call this method with a null argument.
- Parameters:
newRefractionModel
- refraction model to use for the computation- Returns:
- a new detector with updated configuration (the instance is not changed)
- Since:
- 6.1
- See Also:
getRefractionModel()
-
-