Showcase - Install - Documentation
A tool to explore, download, analyse, and classify asteroid reflectance spectra. Originally designed for classification in the taxonomy of Mahlke, Carry, and Mattei 2022, it now offers multiple taxonomic systems and a suite of quality-of-life features for spectroscopic analysis.
Gaia DR4 is here
classy now includes the asteroid reflectance spectra of Gaia DR4, released on
December 2, 2026. The DR3 spectra remain available. Run classy status to
download the new spectra and update your index ("classy status" > "Retrieve public spectra").
Select a release with source='GaiaDR4' or source='GaiaDR3'. source='Gaia'
refers to the latest release, DR4.
Example: Compare the DR3 and DR4 spectra of (21) Lutetia.
>>> import classy
>>> [spec.name for spec in classy.Spectra(21, source="Gaia")] # defaults to DR4
['GaiaDR4/Lutetia']
>>> spectra = classy.Spectra(21, source=["GaiaDR3", "GaiaDR4"])
>>> spectra.classify()
>>> spectra.plot()
or via the command line
$ classy spectra lutetia --source GaiaDR3,GaiaDR4 --plot
Note that classy applies the correction of Tinaut-Ruano+ 2023
to the DR3 spectra only.
Showcase
Things that classy tries to do well. All functionality is available via the command line and the python interface.
Some functionality is available via the web interface.
Explore and compare.
Quickly find and download spectra in public repositories.
Example: List all spectra of asteroids in the Themis family with albedos up to 0.06 that cover the 0.45-1.8μm range.
$ classy spectra --wave_min 0.45 --wave_max 1.8 --family Themis --albedo ,0.06
+-----------+--------+----------+----------+--------+---------------------+--------+--------+-----------------+
| name | number | wave_min | wave_max | phase | date_obs | family | albedo | shortbib |
+-----------+--------+----------+----------+--------+---------------------+--------+--------+-----------------+
| Themis | 24 | 0.435 | 2.49 | 12.917 | 2005-10-08T05:28:30 | Themis | 0.051 | MITHNEOS Unpub. |
| Themis | 24 | 0.45 | 2.4 | - | - | Themis | 0.051 | Fornasier+ 2016 |
| Themis | 24 | 0.435 | 2.49 | 12.876 | 2005-10-08T00:00:00 | Themis | 0.051 | DeMeo+ 2009 |
| Adorea | 268 | 0.44 | 2.4 | - | - | Themis | 0.039 | Fornasier+ 2016 |
| Lipperta | 846 | 0.45 | 2.39 | - | - | Themis | 0.05 | Fornasier+ 2016 |
| Lermontov | 2222 | 0.45 | 2.38 | - | - | Themis | 0.051 | Fornasier+ 2016 |
+-----------+--------+----------+----------+--------+---------------------+--------+--------+-----------------+
6 Spectra
Analyse and classify.
Persistent preprocessing and feature recognition for quick classification.
Example: Classify the spectra above following Mahlke+ 2022, DeMeo+ 2009, and Tholen 1984.
$ classy classify --wave_min 0.45 --wave_max 1.8 --family Themis --albedo ,0.06
+-----------+--------+----------+----------+--------+--------------+-------------+--------------+-----------------+
| name | number | wave_min | wave_max | albedo | class_mahlke | class_demeo | class_tholen | shortbib |
+-----------+--------+----------+----------+--------+--------------+-------------+--------------+-----------------+
| Themis | 24 | 0.435 | 2.490 | 0.0507 | C | C | G | MITHNEOS Unpub. |
| Themis | 24 | 0.450 | 2.400 | 0.0507 | C | C | | Fornasier+ 2016 |
| Themis | 24 | 0.435 | 2.490 | 0.0507 | C | C | G | DeMeo+ 2009 |
| Adorea | 268 | 0.440 | 2.400 | 0.0389 | S | | | Fornasier+ 2016 |
| Lipperta | 846 | 0.450 | 2.390 | 0.0504 | P | X | | Fornasier+ 2016 |
| Lermontov | 2222 | 0.450 | 2.380 | 0.0513 | P | C | | Fornasier+ 2016 |
+-----------+--------+----------+----------+--------+--------------+-------------+--------------+-----------------+
6 Spectra
Visualise and export.
Quick-look plots at any step to verify your analysis.
Example: Show the spectra and the classification results.
$ classy classify --wave_min 0.45 --wave_max 1.8 --family Themis --albedo ,0.06 --plot
Install
classy is available on the python package index as space-classy:
$ pip install space-classy[gui]
Documentation
Check out the documentation at classy.readthedocs.io or run
$ classy docs
Metadata
Release files for space-classy 0.8.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| space_classy-0.8.9.tar.gz | 11.6 MB | Without provenance | Details for space_classy-0.8.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| space_classy-0.8.9-py3-none-any.whl | Python 3 | none | any | Details for space_classy-0.8.9-py3-none-any.whl |
Total release size: 23.2 MB
Release files / space_classy-0.8.9.tar.gz
| Download URL | space_classy-0.8.9.tar.gz |
|---|---|
| Size | 11.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b3bc6369f2ddce081517d2e71f9e9970fe913ae90850f25e3f0107b7d5eb3af
|
|
BLAKE2b-256 checksum How to use checksums |
248d9f159a4c59f765368dd0bdd33ca2aa96c3ee58737fa7b0813a398c83789f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.13 Darwin/25.6.0
|
Release files / space_classy-0.8.9-py3-none-any.whl
| Download URL | space_classy-0.8.9-py3-none-any.whl |
|---|---|
| Size | 11.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4589068eaf96dce8c8fc0cd9f81f489d892a410f75439f7771a0e1c3137ac53
|
|
BLAKE2b-256 checksum How to use checksums |
dd58051eb8bbcc85d6d38dd6c3a3940085c03e09624c6e49f9e2434882b67c40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.13 Darwin/25.6.0
|
Security for space-classy 0.8.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.