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
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.3.tar.gz
(37.2 kB
view hashes)
Built Distribution
Close
Hashes for space_rocks-1.8.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1adadfe0ff92f044fefafe54abe0db639161ea154b24fec809df0fd0c6dcc04 |
|
MD5 | 8a55d976b555ca13585b34dd555ea63f |
|
BLAKE2b-256 | d398053ae833a25e59ac9e583bef9e78ae1d2b1297b77a975133e52d2174a3d6 |