Python client for SsODNet data access.
Project description
Features - Install - Documentation
Features
Explore asteroid data on the command-line...
$ rocks id 221
(221) Eos
$ rocks class Eos
MB>Outer
$ rocks albedo Eos
0.136 +- 0.004
$ rocks taxonomy Eos
K
$ rocks density Eos
4.559e+03 +- 1.139e+03 kg/m$^3$
... and in a python
script.
>>> import rocks
>>> rocks.identify("1902ug")
('Fortuna', 19)
>>> ceres = rocks.Rock("ceres")
>>> ceres.diameter.value
848.4
>>> ceres.diameter.unit
'km'
>>> ceres.mass.value
9.384e+20
>>> ceres.mass.error
6.711e+17
Install
Install from PyPi using pip
:
$ pip install space-rocks
The minimum required python
version is 3.7.
Documentation
Check out the documentation at rocks.readthedocs.io or run
$ rocks docs
For a quick overview, check out the jupyter notebooks:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
space_rocks-1.8.12.tar.gz
(38.7 kB
view hashes)
Built Distribution
Close
Hashes for space_rocks-1.8.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcf2afdfe3332296200045f78279cc45646099b32d96073a0829e8db647a67cb |
|
MD5 | f1413e00872c68247cf1f26ac35d74a1 |
|
BLAKE2b-256 | 163b5601d40dcf1bd4b0d91d5a0798f0a8475d652773f5364574ab4fb175df4f |