Dastcom5

The poliastro.neos.dastcom5 is a module that was developed as a part of the GSOC 2017 Edition. The procedure for coding this module can be checked here DASTCOM5.

NEOs orbit from DASTCOM5 database.

poliastro.neos.dastcom5.asteroid_db()

Return complete DASTCOM5 asteroid database.

Returns:database – Database with custom dtype.
Return type:numpy.ndarray
poliastro.neos.dastcom5.comet_db()

Return complete DASTCOM5 comet database.

Returns:database – Database with custom dtype.
Return type:numpy.ndarray
poliastro.neos.dastcom5.orbit_from_name(name)

Return Orbit given a name.

Retrieve info from JPL DASTCOM5 database.

Parameters:name (str) – NEO name.
Returns:orbit – NEO orbits.
Return type:list (Orbit)
poliastro.neos.dastcom5.orbit_from_record(record)

Return Orbit given a record.

Retrieve info from JPL DASTCOM5 database.

Parameters:record (int) – Object record.
Returns:orbit – NEO orbit.
Return type:Orbit
poliastro.neos.dastcom5.record_from_name(name)

Search dastcom.idx and return logical records that match a given string.

Body name, SPK-ID, or alternative designations can be used.

Parameters:name (str) – Body name.
Returns:records – DASTCOM5 database logical records matching str.
Return type:list (int)
poliastro.neos.dastcom5.string_record_from_name(name)

Search dastcom.idx and return body full record.

Search DASTCOM5 index and return body records that match string, containing logical record, name, alternative designations, SPK-ID, etc.

Parameters:name (str) – Body name.
Returns:lines – Body records
Return type:list(str)
poliastro.neos.dastcom5.read_headers()

Read DASTCOM5 headers and return asteroid and comet headers.

Headers are two numpy arrays with custom dtype.

Returns:ast_header, com_header – DASTCOM5 headers.
Return type:tuple (numpy.ndarray)
poliastro.neos.dastcom5.read_record(record)

Read DASTCOM5 record and return body data.

Body data consists of numpy array with custom dtype.

Parameters:record (int) – Body record.
Returns:body_data – Body information.
Return type:numpy.ndarray
poliastro.neos.dastcom5.download_dastcom5()

Downloads DASTCOM5 database.

Downloads and unzip DASTCOM5 file in default poliastro path (~/.poliastro).

poliastro.neos.dastcom5.entire_db()

Return complete DASTCOM5 database.

Merge asteroid and comet databases, only with fields related to orbital data, discarding the rest.

Returns:database – Database with custom dtype.
Return type:numpy.ndarray