Module make_darkmaps
[hide private]
[frames] | no frames]

Module make_darkmaps

source code

Evolve the CCD, generating fake dark current map using the smoothed-broken-powerlaw spectral model fitting (from fit_evol.py).

First use the dates of actual dark current cals (for direct comparison), then go once per year.

Functions [hide private]
 
plot_overlays()
Plot 1999223 actual, degradation model, 2008273 actual and 2008273 predicted
source code
 
plot_darkcal(darkfile, Tccd, plotsymcol='-', label=None, step=None)
Plot a real dark cal, scaled from temp Tccd to -19
source code
 
plot_dark(dark, label=None, plotsymcol='.', step=False)
Plot dark cal data as a histogram.
source code
 
make_steps(x, y)
For x as bin edges (n+1 vals) and y as bin vals (n vals), make the corresponding arrays that can be plotted as a line.
source code
 
plot_warm_frac(thresh, warmpix) source code
 
make_darkmaps(case='nominal', initial='pristine')
Make dark current maps by degrading the CCD using the best-fit model from fit_evol.py
source code
Variables [hide private]
  npix = 1048576.0
  secs2k = 63072064.184
  sec2year = 3.1688087814e-08
  yeardays = 365.25
  alldarkcals = recarray([('1999:223', 11.9, 8.9000000000000004,...
Function Details [hide private]

plot_darkcal(darkfile, Tccd, plotsymcol='-', label=None, step=None)

source code 

Plot a real dark cal, scaled from temp Tccd to -19

Parameters:
  • darkfile - FITS file containing a dark current map image.
  • Tccd - CCD temperature (degC)
  • plotsymcol - Matplotlib symbol/color specifierr
  • label - Matplotlib plot label
  • step - Matplotlib plot step specifier
Returns:
(dark, x, y)
  • dark: Dark current map (scaled to temperature Tccd)
  • x, y: Histogram values plotted

plot_dark(dark, label=None, plotsymcol='.', step=False)

source code 

Plot dark cal data as a histogram. 'dark' is a flat array.


Variables Details [hide private]

alldarkcals

Value:
recarray([('1999:223', 11.9, 8.9000000000000004, 10.1, 3495, 1778, 4, \
3, -10),
       ('2000:326', 22.199999999999999, 11.300000000000001, 11.8000000\
00000001, 34097, 18442, 28, 10, -10),
       ('2001:060', 23.899999999999999, 12.4, 12.800000000000001, 3738\
1, 19962, 27, 13, -10),
       ('2002:057', 29.199999999999999, 12.5, 12.9, 56671, 29657, 46, \
19, -10),
...