adam_core.orbits.query.scout module¶
- class adam_core.orbits.query.scout.ScoutObjectSummary(table: Table, **kwargs: int | float | str)[source]¶
Bases:
TableTable the represents results of the Scout summary query (returns all objects)
Those objects look like this {
“unc”: “59”, “lastRun”: “2024-10-18 15:31”, “dec”: “-19”, “H”: “18.7”, “moid”: “0.1”, “geocentricScore”: 0, “ra”: “16:54”, “rating”: null, “tisserandScore”: 15, “uncP1”: “76”, “ieoScore”: 47, “rate”: “2.2”, “rmsN”: “0.00”, “Vmag”: “20.5”, “neoScore”: 100, “nObs”: 2, “objectName”: “v17oct4”, “phaScore”: 20, “tEphem”: “2024-10-22 20:15”, “arc”: “0.06”, “caDist”: null, “elong”: “45”, “vInf”: null, “neo1kmScore”: 5
}
- unc¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- lastRun¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- dec¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- H¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- moid¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- geocentricScore¶
A column for storing 64-bit integers.
- ra¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- rating¶
A column for storing 8-bit integers.
- tisserandScore¶
A column for storing 64-bit integers.
- uncP1¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- ieoScore¶
A column for storing 64-bit integers.
- rate¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- rmsN¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- Vmag¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- neoScore¶
A column for storing 64-bit integers.
- nObs¶
A column for storing 64-bit integers.
- objectName¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- phaScore¶
A column for storing 64-bit integers.
- tEphem¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- arc¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- caDist¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- elong¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- vInf¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- neo1kmScore¶
A column for storing 64-bit integers.
- schema: ClassVar[pa.Schema] = unc: large_string not null lastRun: large_string not null dec: large_string not null H: large_string not null moid: large_string not null geocentricScore: int64 not null ra: large_string not null rating: int8 tisserandScore: int64 not null uncP1: large_string not null ieoScore: int64 not null rate: large_string not null rmsN: large_string not null Vmag: large_string not null neoScore: int64 not null nObs: int64 not null objectName: large_string not null phaScore: int64 not null tEphem: large_string not null arc: large_string not null caDist: large_string elong: large_string not null vInf: large_string neo1kmScore: int64 not null¶
- adam_core.orbits.query.scout.get_scout_objects() ScoutObjectSummary[source]¶
Query the Scout API for a summary of all objects.
- Returns:
scout_objects – Table containing the summary of all objects.
- Return type:
~adam_core.orbits.query.scout.ScoutObjectSummary
- class adam_core.orbits.query.scout.ScoutOrbit(table: Table, **kwargs: int | float | str)[source]¶
Bases:
TableRepresents a sample orbit from scout
The fields are as follows: “fields”:[“idx”,”epoch”,”ec”,”qr”,”tp”,”om”,”w”,”inc”,”H”,”dca”,”tca”,”moid”,”vinf”,”geoEcc”,”impFlag”] Sample data:
[
0, “2457581.871499164”, “3.357123709445450E-01”, “9.083681207232809E-01”, “2457636.871738402”, “1.1141193497296813E+02”, “2.4446138666195648E+02”, “1.6610875455065550E+01”, “24.694617”, null, null, “0.321364995E-01”, null, 1.000000000E+99, 0
],
- idx¶
A column for storing 64-bit integers.
- epoch¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- ec¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- qr¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- tp¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- om¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- w¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- inc¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- H¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- dca¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- tca¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- moid¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- vinf¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- geoEcc¶
A column for storing large strings (over 231 bytes long). Large string data is stored in variable-length chunks.
- impFlag¶
A column for storing 64-bit integers.
- schema: ClassVar[pa.Schema] = idx: int64 not null epoch: large_string not null ec: large_string not null qr: large_string not null tp: large_string not null om: large_string not null w: large_string not null inc: large_string not null H: large_string not null dca: large_string tca: large_string moid: large_string not null vinf: large_string geoEcc: large_string not null impFlag: int64 not null¶
- adam_core.orbits.query.scout.scout_orbits_to_variant_orbits(object_id: str, scout_orbits: ScoutOrbit) VariantOrbits[source]¶
Convert a table of scout orbits to a table of variant orbits
- Parameters:
scout_orbits (~adam_core.orbits.query.scout.ScoutOrbit) – Table containing the scout orbits
- Returns:
variant_orbits – Table containing the variant orbits
- Return type:
~adam_core.orbits.VariantOrbits
- adam_core.orbits.query.scout.query_scout(ids: _Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) VariantOrbits[source]¶
Query the Scout API for a list of objects by id
We return VariantOrbits for each orbit sample as the Scout API does not provide covariance information.
These can be further reconstructed into an Orbit with covariance information using the adam_core.orbits.Orbits class.
- Parameters:
ids (array-like) – List of object ids to query
- Returns:
orbits – Table containing the orbits of the objects
- Return type:
~adam_core.orbits.VariantOrbits