Scattered light mapping of protoplanetary disks
Project description
Python tool for scattered light mapping of protoplanetary disks. The disk surface is parameterized with a power law profile or read from an input file. The projected radius and scattering angle is then calculated at each pixel. From this, a deprojected image, a stellar irradiation corrected image, and a scattering phase function can be extracted.
Installation
Installation from PyPI:
$ pip install diskmap
Installation from Github:
$ git clone git@github.com:tomasstolker/diskmap.git
$ python setup.py install
Example
>>> import diskmap
>>> mapping = diskmap.DiskMap(fitsfile='image.fits',
pixscale=1e-2,
inclination=40.,
pos_angle=70.,
distance=100.)
>>> mapping.map_disk(power_law=(0., 0.1, 1.15),
radius=(1., 500., 100))
>>> mapping.deproject_disk()
>>> mapping.r2_scaling(r_max=200.)
>>> mapping.total_intensity(pol_max=1.)
>>> mapping.phase_function(radius=(50., 70.),
n_phase=30)
>>> mapping.write_output(filename='diskmap')
Attribution
Please cite Stolker et al. (2016) whenever results from diskmap are used in a publication.
Contributing
Contributions are welcome, please consider forking the repository and creating a pull request. Bug reports can be provided by creating an issue on the Github page.
License
Copyright 2020 Tomas Stolker
diskmap is distributed under the MIT License. See the LICENSE file for the terms and conditions.
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.