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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6411f8876a80382b220ee5b0caf37aa7ee7ac477821a57ec98bfa52c714bdcc9
|
|
| MD5 |
79d128aba5d29f3530711e0694b3dd9c
|
|
| BLAKE2b-256 |
8b189d644b553f91fd8b0fa03f3cfd67daef29592700f0034f02e19258f272cb
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a0ace77e85f31af0a6602c62808239691b8f80265e0cd39b04f8b8c589d447a
|
|
| MD5 |
523aeee4f3ad5c052c296595d523ab6f
|
|
| BLAKE2b-256 |
456f9e88e68f9e24cd09c32c55f7091254c65da1aa9a67407afb864ef22229e3
|