Skip to main content

AstDyS wrapper in python

Project description

This is a small wrapper to AstDyS catalogue of the asteroids in the Solar system.

How to use it

Installation

pip install astdys

Usage

import astdys

elements = astdys.search(1)
print(elements)

elements contains a dictionary of Keplerian elements of an asteroid.

Also, you can get a list of objects by the semi-major axis:

import astdys

objects = astdys.search_by_axis(2.70, sigma=0.2)
print(objects)

The method will return a dataframe containing all records found. sigma is optional and represent the variation (from axis-sigma to axis+sigma). The default value of sigma=0.1.

To get the current date of the catalog you can use catalog_time() and datetime():

import astdys

date_str = astdys.catalog_time() # string
print(date_str)

date = astdys.datetime() # datetime.datetime
print(date)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astdys-0.9.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astdys-0.9.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file astdys-0.9.3.tar.gz.

File metadata

  • Download URL: astdys-0.9.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/24.3.0

File hashes

Hashes for astdys-0.9.3.tar.gz
Algorithm Hash digest
SHA256 6411f8876a80382b220ee5b0caf37aa7ee7ac477821a57ec98bfa52c714bdcc9
MD5 79d128aba5d29f3530711e0694b3dd9c
BLAKE2b-256 8b189d644b553f91fd8b0fa03f3cfd67daef29592700f0034f02e19258f272cb

See more details on using hashes here.

File details

Details for the file astdys-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: astdys-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/24.3.0

File hashes

Hashes for astdys-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a0ace77e85f31af0a6602c62808239691b8f80265e0cd39b04f8b8c589d447a
MD5 523aeee4f3ad5c052c296595d523ab6f
BLAKE2b-256 456f9e88e68f9e24cd09c32c55f7091254c65da1aa9a67407afb864ef22229e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page