Skip to main content

MCMC fitting code for low temperature atmosphere spectra

Project description

UCDMCMC

Markov Chain Monte Carlo (MCMC) fitting code for low-temperature stars, brown dwarfs ande extrasolar planet spectra, tuned particularly to the near-infrared.

INSTALLATION NOTES

ucdmcmc can be installed from pip:

pip install ucdmcmc

or from git:

git clone
cd ucdmcmc
python -m setup.py install

It is recommended that you install in a conda environment to ensure the dependencies do not conflict with your own installation

conda create -n ucdmcmc python=3.13
conda activate ucdmcmc
pip install ucdmcmc

A check that this worked is that you can import ucdmcmc into python/jupyter noteobook, and that the ucdmcmc.MODEL_FOLDER points to the models folder that was downloaded

ucdmcmc uses the following extenal packages:

  • astropy
  • astroquery
  • corner
  • emcee
  • matplotlib
  • numpy<2.0
  • pandas
  • tables
  • requests
  • scipy
  • statsmodels
  • tqdm

Optionally install SPLAT

To generate new model sets using the built-in generateModels() function, you will need to install SPLAT (note: this is not necessary for the other functionality in this code). SPLAT is not automatically installed on setup. The instructions are essentially the same:

git clone https://github.com/aburgasser/splat.git
cd splat
python -m pip install .

See https://github.com/aburgasser/splat for additional instructions

Models

ucdmcmc comes with a starter set of models that play nicely with the code. An extended set can be downloaded from https://spexarchive.coolstarlab.ucsd.edu/ucdmcmc/

Spectra

ucdmcmc comes with a starter set of spectra for the following instruments:

Usage

[TBD examples]

Citing the code

[TBD]

ucdmcmc and its antecedents has been used in the following publications:

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

ucdmcmc-1.1.tar.gz (44.1 MB view details)

Uploaded Source

Built Distribution

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

ucdmcmc-1.1-py3-none-any.whl (44.1 MB view details)

Uploaded Python 3

File details

Details for the file ucdmcmc-1.1.tar.gz.

File metadata

  • Download URL: ucdmcmc-1.1.tar.gz
  • Upload date:
  • Size: 44.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ucdmcmc-1.1.tar.gz
Algorithm Hash digest
SHA256 ae218b1e68ddb8f1480a0d43dc9416be37a76358df50454c38099142f9f12507
MD5 64b03f55001d26168006d0e8143a7b13
BLAKE2b-256 722c7ce27911e6f29e19b213a0d4f73a5aa70be238e076d2976a65746dcc7ac7

See more details on using hashes here.

Provenance

The following attestation bundles were made for ucdmcmc-1.1.tar.gz:

Publisher: pypi-publish.yml on aburgasser/ucdmcmc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ucdmcmc-1.1-py3-none-any.whl.

File metadata

  • Download URL: ucdmcmc-1.1-py3-none-any.whl
  • Upload date:
  • Size: 44.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ucdmcmc-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 109d20a8da826fa984a1e251185228624bbb79ca3a5b96542a19e468b7d07c3f
MD5 7be1cd86f9dbf08153fe61297b315c97
BLAKE2b-256 d6aeef2b94b6e39d683da5c7fa80f972961493807f8107d5129a2754f1fa18b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for ucdmcmc-1.1-py3-none-any.whl:

Publisher: pypi-publish.yml on aburgasser/ucdmcmc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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