Skip to content
/ galight Public
forked from dartoon/galight

A python package that decompose the light into PSF and Sersic, fitting based on lenstronomy

License

Notifications You must be signed in to change notification settings

ra1nL/galight

 
 

Repository files navigation

galight - Galaxy shapes of Light

A Python-based open-source package that can be used to perform two-dimensional model fitting of optical and near-infrared images to characterize the light distribution of galaxies with components including a disk, bulge, bar and quasar.

plot

Installation

$ git clone https://github.com/dartoon/galight <desired location>
$ cd <desired location>
$ python setup.py install --user

Alternatively, galight can be installed through pip:

$ pip install galight --user

Getting started:

The example notebook allows the user to quickly go through a fitting task on a HST observed AGN at z~1.5.

Some other notebooks of demonstrating how to use galight with more features can be found in: https://github.com/dartoon/galight_notebooks

The data used in the example notebook can be found here.

For more information, an online documentation can be found in ReadtheDocs: https://galight.readthedocs.io/

Additional Features

galight helps the user to execute model fitting with ease based on, but not limited to, automated features as listed as follows:

  • Search PSF stars in the FOV. plot
  • Automatically Estimate the background noise level. plot
  • Cutout the target object galaxies (QSOs) and prepare the materials to model the data.
  • Detecting objects in the cutout stamp and quickly create Sersic keywords (in lenstronomy type) to model them.
  • Model them QSOs and galaxies using 2D Sersic profile and scaled point source, based on lenstronomy. plot

Requirements

packages including: lenstronomy; astropy; photutils; regions and related ones to be installed...

Citation:

@ARTICLE{2020ApJ...888...37D,
   author = {{Ding}, Xuheng and {Silverman}, John and {Treu}, Tommaso and {Schulze}, Andreas and {Schramm}, Malte and {Birrer}, Simon and {Park}, Daeseong and {Jahnke}, Knud and {Bennert}, Vardha N. and {Kartaltepe}, Jeyhan S. and {Koekemoer}, Anton M. and {Malkan}, Matthew A. and {Sanders}, David},
    title = "{The Mass Relations between Supermassive Black Holes and Their Host Galaxies at 1 < z < 2 HST-WFC3}",
  journal = {\apj},
 keywords = {Galaxy evolution, Active galaxies, 594, 17, Astrophysics - Astrophysics of Galaxies},
     year = 2020,
    month = jan,
   volume = {888},
   number = {1},
      eid = {37},
    pages = {37},
      doi = {10.3847/1538-4357/ab5b90},
   archivePrefix = {arXiv},
   eprint = {1910.11875},
    primaryClass = {astro-ph.GA},
   adsurl = {https://ui.adsabs.harvard.edu/abs/2020ApJ...888...37D},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
  }

About

A python package that decompose the light into PSF and Sersic, fitting based on lenstronomy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Makefile 0.6%