Giter Club home page Giter Club logo

kungpao's Introduction

KungPao (宫保) - Delicious Galaxies!


Besides being one of the signature Chinese dishes, kungpao can also help you deal with photometry of galaxies from recent imaging surveys (e.g. HSC, DECaLS).

Also, kungpao does not stand for anything because forced acronym is for psychopath.

Recent Updates

Applications

  • Multi-stage objects detection and deblending
  • Measure and subtract 2-D sky background mode
  • Generate object masks for photometry
  • Model 2-D light distribution of objects on the image

Installation

  • python setup.py install or python setup.py develop will do the job.
  • Right now, kungpao only supports Python>=3. If you are still using Python 2, you should make the switch.
  • kungpao only depends on numpy, scipy, astropy, sep, astroquery, and matplotlib. All can be installed using pip or conda.

Documents

I promisehope that documents will be available soon...but right now, please take a look at the Jupyter Notebook demos for each functionality.

Acknowledgement

Reporting bugs

If you notice a bug in kungpao (and you will~), please file an detailed issue at:

https://github.com/dr-guangtou/kungpao/issues

Requesting features

If you would like to request a new feature, do the same thing.

License

Copyright 2019 Song Huang and contributors.

kungpao is free software made available under the MIT License. For details see the LICENSE file.

kungpao's People

Contributors

astrojacobli avatar dr-guangtou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kungpao's Issues

Create 2 Challenges for Image Fitting

  • Start a IPython notebook to keep record, but eventually have a Python code ready to generate large number of test

Examples:

1: Elliptical galaxy: 3 Sersic components overlap with each other
* Using one elliptical galaxy from CGS as example

2: Edge-on disk galaxy with outer halo: Bulge+Edge-disk+"Halo" component
* Using NGC3115 as example

Step 1

  • Simple Moffat PSF
  • First, create GalSim models with PSF convolution and noise in single band
  • Then save the image and PSF into fits file, see if Galfit or Imfit can successfully recover the parameters

Step 2

  • Learn how to generate multi-band images using GalSim

`sbp.py` needs reconstruction

  • Should write class and methods about 1-D profiles
  • Naming of the functions should change
  • Should remove the dependence on Pyraf
  • Many functions should be outside the sbp.py
  • Should rename it to something like profile_1d.py

Unlisted dependencies

In the process of installing kungpao, I noticed that Erin Sheldon's smatch and cosmology packages also appear to be dependencies. It's probably worth listing these in the readme along with the other dependencies.

Transfer the functions used by Perseus project to Kungpao

Mostly in imtools.py

  • gaia_star_mask()
  • iraf_star_mask()
  • get_noise_maps(); rename to something else
  • mask_high_sb_pixels()
  • replace_with_noise(); rename to something else
  • detect_lsb_objects(); rename to something else
  • detect_bright_objects(); rename to something else

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.