lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.mpSkyEphemerisQueryDRP.MPSkyEphemerisQueryDRPTask Class Reference
Inheritance diagram for lsst.pipe.tasks.mpSkyEphemerisQueryDRP.MPSkyEphemerisQueryDRPTask:

Public Member Functions

 runQuantum (self, butlerQC, inputRefs, outputRefs)
 run (self, detector, finalVisitSummary)
 read_mp_sky_response (self, response)

Static Public Attributes

 ConfigClass = MPSkyEphemerisQueryDRPConfig

Protected Member Functions

 _mpSkyConeSearch (self, fieldRA, fieldDec, epochMJD, queryRadius, mpSkyURL)

Static Protected Attributes

str _DefaultName = "mpSkyEphemerisQueryDRP"

Detailed Description

Task to query the MPSky service and retrieve the solar system objects
that are observable within the input visit.

Member Function Documentation

◆ _mpSkyConeSearch()

lsst.pipe.tasks.mpSkyEphemerisQueryDRP.MPSkyEphemerisQueryDRPTask._mpSkyConeSearch ( self,
fieldRA,
fieldDec,
epochMJD,
queryRadius,
mpSkyURL )
protected
Query MPSky ephemeris service for objects near the expected detector position

Parameters
----------
expCenter : `lsst.geom.SpherePoint`
    Center of search cone
epochMJD : `float`
    Epoch of cone search, (MJD in UTC).
queryRadius : `float`
    Radius of the cone search in degrees.
mpSkyURL : `str`
    URL to query for MPSky.

Returns
-------
mpSkySsObjects : `pandas.DataFrame`
    DataFrame with Solar System Object information and RA/DEC position
    within the visit.

◆ read_mp_sky_response()

lsst.pipe.tasks.mpSkyEphemerisQueryDRP.MPSkyEphemerisQueryDRPTask.read_mp_sky_response ( self,
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

◆ run()

lsst.pipe.tasks.mpSkyEphemerisQueryDRP.MPSkyEphemerisQueryDRPTask.run ( self,
detector,
finalVisitSummary )
Parse the information on the current visit and retrieve the
observable solar system objects from MPSky.

Parameters
----------
finalVisitSummary : `lsst.afw.table.ExposureCatalog`
    visitInfo including center and time of exposure

Returns
-------
result : `lsst.pipe.base.Struct`
    Results struct with components:

    - ``ssObjects`` : `pandas.DataFrame`
        DataFrame containing Solar System Objects near the detector
        footprint as retrieved by MPSky. The columns are as follows:

        ``Name``
            object name (`str`)
        ``ra``
            RA in decimal degrees (`float`)
        ``dec``
            DEC in decimal degrees (`float`)
        ``obj_X_poly``, ``obj_Y_poly``, ``obj_Z_poly``
            Chebyshev coefficients for object path
        ``obs_X_poly``, ``obs_Y_poly``, ``obs_Z_poly``
            Chebyshev coefficients for observer path
        ``t_min``
            Lower time bound for polynomials
        ``t_max``
            Upper time bound for polynomials

◆ runQuantum()

lsst.pipe.tasks.mpSkyEphemerisQueryDRP.MPSkyEphemerisQueryDRPTask.runQuantum ( self,
butlerQC,
inputRefs,
outputRefs )
Do butler IO and transform to provide in memory
objects for tasks `~Task.run` method.

Parameters
----------
butlerQC : `QuantumContext`
    A butler which is specialized to operate in the context of a
    `lsst.daf.butler.Quantum`.
inputRefs : `InputQuantizedConnection`
    Datastructure whose attribute names are the names that identify
    connections defined in corresponding `PipelineTaskConnections`
    class. The values of these attributes are the
    `lsst.daf.butler.DatasetRef` objects associated with the defined
    input/prerequisite connections.
outputRefs : `OutputQuantizedConnection`
    Datastructure whose attribute names are the names that identify
    connections defined in corresponding `PipelineTaskConnections`
    class. The values of these attributes are the
    `lsst.daf.butler.DatasetRef` objects associated with the defined
    output connections.

The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/mpSkyEphemerisQueryDRP.py