Skip to content

Robustly remove the 1/f noise in the JWST NIRCam level 2 images (*_cal.fits)

License

Notifications You must be signed in to change notification settings

wenlong2/jwstdestripe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwstdestripe

A NIRCam 1/f Noise Removal package

Update:

v0.0.2: NIRCam missing value convention changed to NaN from zero. This package is updated accordingly. 11/21/2024.

Features:

  • Robustly remove the JWST NIRCam 1/f Noise
  • Easy to install and easy to use
  • Preserve original background gradient
  • Preserve overall background level
  • Subtract row 1/f noise for each amplifier
  • With the option to remove column 1/f noise altogether
  • Pixels with zero counts are excluded from calculation
  • Point sources are excluded from the median calculation
  • Results saved to FITS files and new arrays returned

Installation

pip install git+https://github.com/wenlong2/jwstdestripe

Tutorial & Example

from jwstdestripe import destripe

f = 'path/to/cal.fits/file_cal.fits' # only applies to cal.fits
a=destripe.destripe(f)
newarr, stripe = a.destripe(column=False) # default, if remove row noise only
newarr, stripe = a.destripe(column=True) # if remove column noise as well

Reference

NIRCam 1/f Noise Removal Methods

About

Robustly remove the 1/f noise in the JWST NIRCam level 2 images (*_cal.fits)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages