MPSkyEphemerisQueryTask#
- class lsst.ap.association.MPSkyEphemerisQueryTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#
Bases:
PipelineTaskTask to query the MPSky service and retrieve the solar system objects that are observable within the input visit.
Methods Summary
read_mp_sky_response(response)Extract ephemerides from an MPSky web request
run(predictedRegionTime)Parse the information on the current visit and retrieve the observable solar system objects from MPSky.
Methods Documentation
- read_mp_sky_response(response)#
Extract ephemerides from an MPSky web request
Parameters#
- response
requests.Response MPSky message
Returns#
- objID
np.ndarray Designations of nearby objects
- ra
np.ndarray Array of object right ascensions
- dec
np.ndarray Array of object declinations
- object_polynomial
np.ndarray, (N,M) Array of object cartesian position polynomials
- observer_polynomial
np.ndarray, (N,M) Array of observer cartesian position polynomials
- t_min
np.ndarray Lower time bound for polynomials
- t_max
np.ndarray Upper time bound for polynomials
- elements
pandas.DataFrameorNoneType Orbital elements of ssObjects (to pass to alerts)
- response
- run(predictedRegionTime)#
Parse the information on the current visit and retrieve the observable solar system objects from MPSky.
Parameters#
- predictedRegionTime
lsst.pipe.base.utils.RegionTimeInfo Predicted footprint and timespan of the exposure
Returns#
- result
lsst.pipe.base.Struct Results struct with components:
ssObjectspandas.DataFrameDataFrame containing Solar System Objects near the detector footprint as retrieved by MPSky. The columns are as follows:
Nameobject name (
str)raRA in decimal degrees (
float)decDEC in decimal degrees (
float)obj_X_poly,obj_Y_poly,obj_Z_polyChebyshev coefficients for object path
obs_X_poly,obs_Y_poly,obs_Z_polyChebyshev coefficients for observer path
t_minLower time bound for polynomials
t_maxUpper time bound for polynomials
- predictedRegionTime