python routines to calculate mie opacities
Project description
DSHARP Mie-Opacity Library
This repository contains a module to carry out Mie opacity calculations based on a range of astrophysically relevant optical datasets and to calculate the default opacity tables used in the Disk Substructures at High Angular Resolution Project (DSHARP, PI: S. Andrews).
This package was created by T. Birnstiel and C.P. Dullemond.
Credit
If you use this package, please cite Birnstiel et al. (2018).
If you use any optical constants, please cite the appropriate experimental papers. The reference will be displayed upon import of the constants.
Installation
-
From source: go into the base directory (where this
README.md
is) and runpip install .
Should you work on the sources, e.g. for including new optical constants or new mehtods, then we recommend linking the installation to the source folder. Changes to the sources will then be reflected upon
import dsharp_opac
without the need to reinstall the package. -
last release from pypi.org:
pip install dsharp_opac
Note: some of the optical constants rely on data files that will be downloaded upon first use of that particular class.
Tests & Examples
You can find some jupyter notebooks in the notebooks folder that demonstrate some of the functionality of this package. It also contains the notebooks and data that were used to create the figures in Birnstiel et al. (2018).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dsharp_opac-1.1.9.tar.gz
.
File metadata
- Download URL: dsharp_opac-1.1.9.tar.gz
- Upload date:
- Size: 9.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e51e59e317fc9b954a183474a4829273fa7862baa9da0c02ded3d777984c9b41 |
|
MD5 | bccef60db2afc42ba981212b18251357 |
|
BLAKE2b-256 | 39b3e50b95ec47a0223a8ebfa030bf0f200e4d4fa6150cc48e655d24ba460a75 |
File details
Details for the file dsharp_opac-1.1.9-cp310-cp310-macosx_13_0_arm64.whl
.
File metadata
- Download URL: dsharp_opac-1.1.9-cp310-cp310-macosx_13_0_arm64.whl
- Upload date:
- Size: 7.6 MB
- Tags: CPython 3.10, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9184bbf23c3d550ea86cda357d0e2cbf7ccacda3f3019ec26a017c99f76b838 |
|
MD5 | 8bb91e2aceae6527667c5a84c3d4f9a4 |
|
BLAKE2b-256 | 17eb8fd85888f1faac3cdca284fae912d0d2daedac3bcceb608f49072b4970f2 |