Skip to main content

Stellar Geology

Documentation Status DOI

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

Release files for stellar-geology 0.1.3

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

Source distribution (sdist)

Source distribution for stellar-geology 0.1.3
File Size Uploaded
stellar_geology-0.1.3.tar.gz 33.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stellar-geology 0.1.3
File Interpreter ABI Platform
stellar_geology-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 57.3 kB

Release files / stellar_geology-0.1.3.tar.gz

Download URL stellar_geology-0.1.3.tar.gz
Size 33.8 kB
Tags Source
SHA-256 checksum
How to use checksums
847b6814185f703112762f7323b8af5235688df1e96e6ce23f2e8a1dcf82f8c6
BLAKE2b-256 checksum
How to use checksums
05633fcc8da60bdce9488eca4ff3750c8bf9de1cf77e466be6b8b4769c022bf0
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.1.3-py3-none-any.whl

Download URL stellar_geology-0.1.3-py3-none-any.whl
Size 23.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32413d9df46c76bb90104b8c73d2b07a5243392d68c3f7ff30a4c5272af40b32
BLAKE2b-256 checksum
How to use checksums
18e142dc214cbac04df807425011ef3005fb86ec941a9c0a979967560840de14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.20

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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