|
lsst.pipe.tasks gcf790cdeb6+f6e4da7c1c
|
Functions | |
| nJy_to_mag (f_njy) | |
| nJy_err_to_mag_err (f_njy, f_err_njy) | |
| compute_ssobject_entry (row, sss) | |
| compute_ssobject (sss, dia, mpcorb) | |
| main () | |
Variables | |
| list | DIA_COLUMNS |
| list | DIA_DTYPES = [int, float, float, float, float, str, float, float] |
| str | input_dir = "./analysis/inputs" |
| str | output_dir = "./analysis/outputs" |
| sss | |
| num = len(sss) | |
| dia | |
| mpcorb | |
| obj = compute_ssobject(sss, dia, mpcorb) | |
| lsst.pipe.tasks.ssp.ssobject.compute_ssobject | ( | sss, | |
| dia, | |||
| mpcorb ) |
Compute solar system object properties by joining and processing
SSSource, DiaSource, and MPC orbit data.
This function takes a pre-grouped SSSource table, joins it with
DiaSource data, computes per-object quantities, and calculates
additional orbital parameters like Tisserand J and Minimum Orbit
Intersection Distance (MOID) with Earth for matching objects.
Parameters
----------
sss : pandas.DataFrame
SSSource table, pre-grouped by 'ssObjectId'. Must be sorted by
'ssObjectId' for correct grouping. Contains columns like
'ssObjectId', 'diaSourceId', etc.
dia : pandas.DataFrame
DiaSource table with columns prefixed as 'dia_' in the join.
Must include 'dia_diaSourceId', 'dia_psfFlux', 'dia_psfFluxErr',
etc.
mpcorb : pandas.DataFrame
MPC orbit data with columns like
'unpacked_primary_provisional_designation', 'q', 'e', 'i',
'node', 'argperi'.
Returns
-------
numpy.ndarray
Array of ssObject records with dtype schema.ssObjectDtype,
containing computed properties for each unique ssObjectId,
including magnitudes, orbital elements, Tisserand J, and
MOID-related values.
Raises
------
AssertionError
If 'sss' is not pre-grouped by 'ssObjectId', or if DiaSources
are missing after join.
Notes
-----
- The function assumes 'sss' is large and avoids internal
sorting/copying for efficiency.
- Tisserand J and MOID are computed only for objects matching
designations in 'mpcorb'.
- MOID computation uses a MOIDSolver for each matched object.
Definition at line 127 of file ssobject.py.
| lsst.pipe.tasks.ssp.ssobject.compute_ssobject_entry | ( | row, | |
| sss ) |
Definition at line 56 of file ssobject.py.
| lsst.pipe.tasks.ssp.ssobject.main | ( | ) |
CLI entry point for building SSObject table from SSSource, DiaSource, and MPC orbit data.
Definition at line 244 of file ssobject.py.
| lsst.pipe.tasks.ssp.ssobject.nJy_err_to_mag_err | ( | f_njy, | |
| f_err_njy ) |
Convert flux error in nanoJanskys to magnitude error.
Parameters
----------
f_njy : float
Flux in nanoJanskys.
f_err_njy : float
Flux error in nanoJanskys.
Returns
-------
float
Magnitude error.
Definition at line 37 of file ssobject.py.
| lsst.pipe.tasks.ssp.ssobject.nJy_to_mag | ( | f_njy | ) |
Convert flux density in nanoJanskys (nJy) to AB magnitude.
Parameters
----------
f_njy : float or array-like
Flux density in nanoJanskys.
Returns
-------
float or array-like
AB magnitude corresponding to the input flux density.
Definition at line 20 of file ssobject.py.
| lsst.pipe.tasks.ssp.ssobject.dia |
Definition at line 354 of file ssobject.py.
| list lsst.pipe.tasks.ssp.ssobject.DIA_COLUMNS |
Definition at line 13 of file ssobject.py.
| list lsst.pipe.tasks.ssp.ssobject.DIA_DTYPES = [int, float, float, float, float, str, float, float] |
Definition at line 17 of file ssobject.py.
| str lsst.pipe.tasks.ssp.ssobject.input_dir = "./analysis/inputs" |
Definition at line 340 of file ssobject.py.
| lsst.pipe.tasks.ssp.ssobject.mpcorb |
Definition at line 364 of file ssobject.py.
| lsst.pipe.tasks.ssp.ssobject.num = len(sss) |
Definition at line 351 of file ssobject.py.
| lsst.pipe.tasks.ssp.ssobject.obj = compute_ssobject(sss, dia, mpcorb) |
Definition at line 387 of file ssobject.py.
| str lsst.pipe.tasks.ssp.ssobject.output_dir = "./analysis/outputs" |
Definition at line 341 of file ssobject.py.
| lsst.pipe.tasks.ssp.ssobject.sss |
Definition at line 348 of file ssobject.py.