https://github.com/abostroem/pyzogy

https://github.com/abostroem/pyzogy

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
    Links to: iop.org, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: abostroem
  • License: mit
  • Default Branch: master
  • Size: 87.9 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Fork of dguevel/PyZOGY
Created over 5 years ago · Last pushed over 5 years ago

https://github.com/abostroem/PyZOGY/blob/master/

# PyZOGY
PyZOGY is a Python implementation of the image subtraction algorithm published by Zackay, Ofek, and Gal-Yam. 
The algorithm requires two registered images and their PSF's saved as fits files. One can optionally provide
masks, in fits files where every pixel is either 0 (good) or 1 (bad). Alternatively, the code will mask pixels
above a user defined threshold (a number) for each image. The code fits the spatially varying background level by dividing 
the image into a number of stamps provided by the user; the default is 1. The image can be normalized to either
the science image or the reference image.


The details of the algorithm can be found at http://iopscience.iop.org/article/10.3847/0004-637X/830/1/27/meta

If you use this code for a publication, please cite the above paper and our Zenodo DOI: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1043973.svg)](https://doi.org/10.5281/zenodo.1043973)

## Installation
Clone the repository and run `python setup.py install`

## Usage
The code can be run from the command line or within Python

To run on the command line, type:

`pyzogy --science-image "your-science-image" --reference-image "your-reference-image" --science-psf "your-science-psf" --reference-psf "your-reference-psf"`

with any of the following options:

```
--science-mask "your-science-mask"
--reference-mask "your-reference-mask"
--science-saturation number
--reference-saturation number
--n-stamps "number"
--normalization "science" or "reference"
--gain-ratio number
--gain-mask "mask-filename"
--use-pixels
--show
--matched-filter "your-matched-filter-output"
```
To use in Python, type:
```
from PyZOGY.subtract import run_subtraction
run_subtraction("your-science-image", "your-reference-image", "your-science-psf", "your-reference-psf")
```

with any of the following options:

```
science_mask = "your-science-mask"
reference_mask = "youre-reference-mask"
science_saturation = number
reference_saturation = number
n_stamps = number
normalization = "science" or "reference"
gain_ratio = number
gain-mask = "mask-filename"
use-pixels = boolean
show = boolean
matched-filter = "your-matched-filter-output"
```

## Dependencies

PyZOGY requires numpy, astropy, scipy, sep, matplotlib, and statsmodels

Owner

  • Name: Azalee Bostroem
  • Login: abostroem
  • Kind: user

GitHub Events

Total
Last Year