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
  • simple usage, log10 and linear
  • method to create your own model, existing model provided

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.

There is an existing model created in best_inputs.pkl and best_trace.nc, simply provide these paths when you are using to avoid creating your own model.

However, to get your own data and create your own 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.

Usage of the model requires initializiation of the class and loading of the trace from a .nc file.

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([...]).

Uncertainty (upper and lower bounds) can be accessed from predict_full and predict_full_liner.

An example is seen in the example.ipynb. Deep analysis is seen in comparison.ipynb, showing statistical results and a comparison with Forecaster. Those use additional libraries for visualization and statistics (seaborn and SciPy).

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-4.0.5.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

exorm-4.0.5-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for exorm-4.0.5.tar.gz
Algorithm Hash digest
SHA256 ba9ac2700cf4ece70f0f79b651637c1a38c5ee05c6e1217325f2b9099b75ca10
MD5 83df1042e54f4360ade8d84cb2e49e1c
BLAKE2b-256 85d9e34c8dc9a43ec5b64cda542f10673c440e02a44f4faf153e5f88f383f207

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for exorm-4.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c9fc233714cf116d17ee6bf79212936c489f232d3bcfdbb7f3c6b621b1f55dd
MD5 2231d870b817ae6596d3f2810fbb4997
BLAKE2b-256 387cd8d5c35f67d3cd8b9cc49d483f5db96bebd41bfec28cf1735a49058744e5

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