Skip to main content

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

Classified spectra

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.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for space-classy 0.8.10
File Size Uploaded Provenance Actions
space_classy-0.8.10.tar.gz 11.6 MB Without provenance Details for space_classy-0.8.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for space-classy 0.8.10
File Interpreter ABI Platform Actions
space_classy-0.8.10-py3-none-any.whl Python 3 none any Details for space_classy-0.8.10-py3-none-any.whl

Total release size: 23.2 MB

Release files / space_classy-0.8.10.tar.gz

Download URL space_classy-0.8.10.tar.gz
Size 11.6 MB
Tags Source
SHA-256 checksum
How to use checksums
64314a2b18db0ebe8f44be09a248971adb94d9b05920d7db092b9f635e913543
BLAKE2b-256 checksum
How to use checksums
fb6c546aa7a1ef3cc2a1012919d4153c331af6d5da7351f665d41fa846cc7c8b
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.10-py3-none-any.whl

Download URL space_classy-0.8.10-py3-none-any.whl
Size 11.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ed9b611fb6e39043bccf76e14deeb1d80a49a9de51ba6ee0a859d64a129f8e02
BLAKE2b-256 checksum
How to use checksums
e93fb38175bb03e15f95c06435acd553df6ca2e1f40858b035517639c27509ff
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.10

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.

Release history Release notifications | RSS feed

This release

0.8.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page