Stellar Geology
A python library for calculating planet geochemistry from stellar compositions.
stellar_geology takes a star’s elemental abundances (in dex notation), converts them through a geochemical pipeline, and predicts the bulk and silicate composition of rocky planets. It then calculates CIPW normative mineralogy for the resulting silicate mantles — olivine, pyroxene, garnet, and more.
import stellar_geology as sg
# make a star
star = sg.Star(stellar_dex={"Fe": 0.1, "Mg": -0.05, "Si": -0.05, "Ca": 0.02, "Al": 0.03})
# derive a planet
planet = sg.Planet.from_star(star)
bsp = sg.Planet(bulk_planet=planet.bulk_planet, alphas={"Fe": 0.49, "Ni": 0.49})
bsp = bsp.get_composition("bulk_silicate_planet", units="wtpt_oxides")
# calculate its mineralogy
mineralogy = sg.calculate_mineralogy(bsp)
Installation
pip install stellar-geology
Metadata
Release files for stellar-geology 0.2.0
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 |
|---|---|---|---|---|
| stellar_geology-0.2.0.tar.gz | 37.7 kB | Without provenance | Details for stellar_geology-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stellar_geology-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for stellar_geology-0.2.0-py3-none-any.whl |
Total release size: 63.2 kB
Release files / stellar_geology-0.2.0.tar.gz
| Download URL | stellar_geology-0.2.0.tar.gz |
|---|---|
| Size | 37.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b5625df7c12348d32896860dc0d9fa55e3bb14c4843ab2491677b672c323af9
|
|
BLAKE2b-256 checksum How to use checksums |
86ea27f67035aeca850f11eefa15aeb9f9de037efde2e11c5c489ce2e837197e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.20
|
Release files / stellar_geology-0.2.0-py3-none-any.whl
| Download URL | stellar_geology-0.2.0-py3-none-any.whl |
|---|---|
| Size | 25.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afcaa0e58a5b68e8e5083bcdeb016b05e9f0363f28ce74ce7cb44110151f38f0
|
|
BLAKE2b-256 checksum How to use checksums |
3fc3423ee97660f985b77f4180e494126cbe2e14ddf34b94ac9a6e72a562f4db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.20
|
Security for stellar-geology 0.2.0
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.