Giter Site home page Giter Site logo

scuba2-source-extraction's Introduction

Python source extraction code for JCMT SCUBA-2 images

This repository contains my python code and a demo to extract point sources from JCMT SCUBA-2 images at 450 or 850 micron. The image used for the demo is a reduced 850 micron image of the cluster field Abell 2390, which was presented in Hsu et al. 2017

Data

Input

  • s8.fits: a SCUBA-2 850 micron image

Output

  • stack850.fits: a stacked image of the 25 brightest sources detected in s8.fits
  • psf850.fits: a PSF image generated by fitting a double-Gaussian model to stack850.fits
  • test-resid.fits: the residual of s8.fits with 108 4-sigma detected sources subtracted
  • test-snr-resid.fits: the signal-to-noise ratio image of test-resid.fits
  • test-source.log: the catalog (csv format) of the 108 4-sigma detected sources
  • test.reg: the region file of the 108 4-sigma detected sources

Code

The code is in scuba2.py, where scuba850 and scuba450 are the classes for source extraction; region is a function to generate region files; and doubleGauss is a function to compute a double-Gaussian model. Please read the comments of scuba850 for an understanding of the source extraction procedure. A simple demo of how to run the code is shown in demo.ipynb.

scuba2-source-extraction's People

Contributors

liyenhsu avatar

Stargazers

Yuheng Zhang avatar

Watchers

James Cloos avatar

Forkers

zhangyuheng94

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.