Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixflat #1022

Merged
merged 7 commits into from Nov 7, 2020
Merged

Pixflat #1022

merged 7 commits into from Nov 7, 2020

Conversation

julienguy
Copy link
Contributor

New script to compute a pixel flat field from a flat exposure obtained during the CCD qualification tests instead of the flat field slit in a spectrograph. This code is written to compute a temporary flat for the new SM5 RED CCD (M1-28).

Usage:

desi_compute_broadband_pixel_flatfield [-h] -i INFILE -o OUTFILE -c CAMERA [--sigma SIGMA]

Computes a pixel level flat field image from a flat image obtained during the CCD qualification tests, like
/global/cfs/cdirs/desi/spectro/teststand/rawdata/v0/M1-28_report/Flats/flat_median_700.fits. This code is designed for LBL CCDs in the RED cameras for now.

optional arguments:
  -h, --help            show this help message and exit
  -i INFILE, --infile INFILE
                        path to input flat image fits file (default: None)
  -o OUTFILE, --outfile OUTFILE
                        output flatfield image filename (default: None)
  -c CAMERA, --camera CAMERA
                        camera: only RED implemented for now (default: None)
  --sigma SIGMA         sigma of 2D Gaussian convolution in pixels (default: 20.0)

Method: after remapping the CCD quadrants, divide the image in each quadrant by a median per row, a median per column, and a Gaussian convolved version of the same image.

Example (for SM2 where we also have the pixflat from the flatfield slit):

desi_compute_broadband_pixel_flatfield -i /global/cfs/cdirs/desi/spectro/teststand/rawdata/v0/M1-46_report/Flats/flat_median_700.fits -o flat-sm2-r-labtest.fits -c red
ds9 $DESI_SPECTRO_CALIB/ccd/pixflat-sm2-r.fits flat-sm2-r-labtest.fits

(left from flatfield slit , right from M1-46_report/Flats/flat_median_700.fits)
Screenshot from 2020-11-06 13-04-52

@sbailey
Copy link
Contributor

sbailey commented Nov 6, 2020

Looks good, thanks. Go ahead and merge when tests pass.

@julienguy julienguy merged commit c963006 into master Nov 7, 2020
@julienguy julienguy deleted the pixflat branch December 11, 2020 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants