Skip to main content

a model for the mass of an exoplanet given the radius

Project description

ExoRM

ExoRM is a model for the mass of an exoplanet given the radius

PyPI Downloads

Author: Kevin Zhu

Features

  • continuous radius-mass relationship
  • smooth with lower residuals
  • simple usage, log10 and linear
  • method to create your own model
  • prediction interval

Installation

To install ExoRM, use pip: pip install ExoRM.

However, many prefer to use a virtual environment (or any of their preferred choice).

macOS / Linux:

# make your desired directory
mkdir /path/to/your/directory
cd /path/to/your/directory

# setup the .venv (or whatever you want to name it)
pip install virtualenv
python3 -m venv .venv

# install ExoRM
source .venv/bin/activate
pip install ExoRM

deactivate # when you are completely done

Windows CMD:

# make your desired directory
mkdir C:path\to\your\directory
cd C:path\to\your\directory

# setup the .venv (or whatever you want to name it)
pip install virtualenv
python3 -m venv .venv

# install ExoRM
.venv\Scripts\activate
pip install ExoRM

deactivate # when you are completely done

Usage

To first begin using ExoRM, the data and model must be initialized. This is due to the constant discovery of new exoplanets, adding to the data. You may also call these at any time to update the model.

Simply run get_data() and initialize_model(). Note: import those by using from ExoRM.get_data import get_data() and from ExoRM.initialize_model() import initialize_model(). A plot of the model will be shown for you to see. Both are stored in your OS's Application Data for ExoRM. ExoRM provides built in functions to retrieve from this folder.

When initializing models, it may take some time. However, even with the current iteration amount, the values are not completely consistent--please re-initialize your model if you find that the s-value is too low.

To use the model, call ExoRM.load_model() which returns the model from the filepath. If you wish, you may use model.save(...) to save it to your own directory.

Note that all files saved are located in /Users/<username>/Library/Application Support/ExoRM for macOS and C:\Users\<username>\AppData\Local\ExoRM\ExoRM for windows.

The model supports log10 and linear scale in earth radii. When using the model([...]), .__call__([...]), or .predict([...]), the log10 scale is used. Linear predictions are used in .predict_linear([...]).

The high amount of uncertainty can be accessed from ExoRM. An exponential curve fit is used to estimate the squared errors, and square root of the model at any point is the RMSE (standard deviation of the errors). Generally, the log error increases as the log radius increases. Estimate the error by using model.error([...]) and model.linear_error([...]), which returns the 2nd standard deviation, with a smooth transition to the 3rd during extrapolations.

An example is seen in the example.ipynb. Deep analysis is seen in comparison.ipynb, showing statistical results and a comparison with Forecaster.

Additional notes

ExoRM has an implementation of Forecaster for according to the NASA Exoplanet Archive.

Forecaster: https://github.com/chenjj2/forecaster NASA Exoplanet Archive implementation: https://exoplanetarchive.ipac.caltech.edu/docs/pscp_calc.html

License

The License is an MIT License found in the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exorm-3.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exorm-3.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file exorm-3.1.0.tar.gz.

File metadata

  • Download URL: exorm-3.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for exorm-3.1.0.tar.gz
Algorithm Hash digest
SHA256 842b09a1237deda9f392939eafb8e2c8a89569e6b78cbddc971e9b19b3df360d
MD5 cea22cd54cb5de6f2f46dc853ef60ab8
BLAKE2b-256 55c2e8d684f37d996b22a21da323a28ac69038463a1ab4a2df4134b187cc5e9a

See more details on using hashes here.

File details

Details for the file exorm-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: exorm-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for exorm-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a6c6a0946495d7c5c8463fb98868ad98f186477f8092147f9a56bcea8bafb3e
MD5 85e78ebb391c0d38380d5774db0030e5
BLAKE2b-256 4f46bd2af324ec40afa55a060aff36c359009b4871f1479750efd69ead398cb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page