> > |
- Apply gain
- Hot pixel removal
- Horizontal projection (image array, projected 1d array)
- Peak finder (1d array, list of lists peak, location, width)
- Fit gaussians (list of lists peak, location, width, list of lists a, mu, sigma, sig_a, sig_mu, sig_sigma)
- Build calibration function lambda = f(micrometer, mu)
- import pyfits
- f = pyfits.open("filename")
- d = f[0].data # 2d array data
- h = f[0].header # fits header data
- px = d.sum(0)
- py = d.sum(1)
- gain = h['EGAIN']
|