Skip to main content

MCFOST post-processing in Python'

Project description

pymcfost

pymcfost is a python interface to the 3D radiative transfer code mcfost. The goal is to provide a simple and light interface to explore and plot a single (or a few) model(s).

pymcfost offers (or will offer) the following functionalities:

  • set up continuum and line models,
  • read a single model or library of models,
  • plot basic quantities, e.g. density structures, temperature maps on the various grids available in mcfost,
  • plot observables : SEDs, image (with convolution), polarisation maps and vectors, visibilities, channels maps (with spatial and spectral convolution), moment maps.
  • convert units, e.g. W.m-2 to Jy or brightness temperature
  • provides an interface to the ALMA CASA simulator
  • provides a fast and simplfied version of the ALMA simulator (spatial convolution with Gaussian, spectral convolution and noise), ie ignoring uv sampling,
  • consistent interface with the casa_cube python package to compare observations with models
  • read and plot dust models, including Mie, DHS and aggregates dust properties calculations
  • (TBD) direct interface to the ML chemical predictions

Installation

Using pip

pip install pymcfost

From the git repo

git clone https://github.com/cpinte/pymcfost.git
cd pymcfost
pip install .

To install in developer mode: (i.e. so that code changes here are immediately available without needing to repeat the above step):

pip install -e .

History

In case you are curious, pymcfost was born as an attempt to port in python the functions that were available in the yorick-mcfost code, which is still available here: https://github.com/cpinte/yomcfost. The fitting routines of the yorick interface are yet to be ported into pymcfost. An alternative python distribution is available at https://github.com/swolff9/mcfost-python . It is more tailored towards handling large grid of models and model fitting.

Main structural differences with mcfost-python so far

  • python >= 3.8 vs python 2.x
  • only parameter file >= 3.0
  • handles parameter files with mutiple zones, dust population, molecules, stars, etc. Parameter files are stored in objects rather than dicts, allowing more flexibility.
  • does not and will not handle observational data, only models

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

pymcfost-0.1.1.tar.gz (104.1 kB view details)

Uploaded Source

Built Distribution

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

pymcfost-0.1.1-py3-none-any.whl (102.5 kB view details)

Uploaded Python 3

File details

Details for the file pymcfost-0.1.1.tar.gz.

File metadata

  • Download URL: pymcfost-0.1.1.tar.gz
  • Upload date:
  • Size: 104.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pymcfost-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f0ffd2ee3bcb07487f9fdb1fde910f674d9dc0ba585549f08691c4b62fd1235b
MD5 7d44740a0b1dcbd2bf5bc32bef54466b
BLAKE2b-256 593334ebd53ab07016da0b5d168bc31c51a462efacca45300bdb29a156834e6f

See more details on using hashes here.

File details

Details for the file pymcfost-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pymcfost-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 102.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pymcfost-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56fae6ac0191331f0b0d6a6f2d06b205c978e6a86f19fc8b0237e211d80ac704
MD5 72b248b94cf6d9f4ac29acab0361cc46
BLAKE2b-256 dc7d4956af518bc0fe207245a44e4d304022efbaf41d7eabb487d3529bd953a7

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