Skip to main content

python routines to calculate mie opacities

Project description

Codacy Badge DOI Binder

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 run

    pip 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


Download files

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

Source Distribution

dsharp_opac-1.1.11.tar.gz (9.4 MB view details)

Uploaded Source

Built Distribution

dsharp_opac-1.1.11-cp312-cp312-macosx_15_0_arm64.whl (7.6 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

File details

Details for the file dsharp_opac-1.1.11.tar.gz.

File metadata

  • Download URL: dsharp_opac-1.1.11.tar.gz
  • Upload date:
  • Size: 9.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for dsharp_opac-1.1.11.tar.gz
Algorithm Hash digest
SHA256 56f48c255d6f4f5a57ce4f9557d1fea83685b5b8dfe5b56cc227374a0efdebec
MD5 dbdd5eb2cec3ac371a618e1958e20bca
BLAKE2b-256 eaa736fc3dba7fffe4b6bbee7d5d119429e623cc050044e019d392b59c342b23

See more details on using hashes here.

File details

Details for the file dsharp_opac-1.1.11-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for dsharp_opac-1.1.11-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a3ac2cf75eb2aab259b8fe16d8bfc02f17930cc3ff64394d0e22adf72ddc841a
MD5 9a052884f260e0e324b7a48fee46cc95
BLAKE2b-256 fe49a7e398e5147ff1c24d46f503e3c2801d1011cd08ffa4178375d9fad433a6

See more details on using hashes here.

Supported by

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