acdc.superdark.cos_fuv_superdark.Superdark

class Superdark(hv, segment, mjdstarts, mjdends, dayint=100, bin_x=1, bin_y=1, bin_pha=1, phastart=1, phaend=31, pha_bins=None, gsagtab=None, bpixtab=None, region='inner', outfile=None, outdir='.', xylimits=None, overwrite=False, sdqflags=8346)[source]

Bases: object

To keep things consistent, start and stop range are defined the same as within python- start is inclusive but stop is EXCLUSIVE. E.g. using a PHA range of 1 to 31 means you will get PHA=1 up to PHA=30, but not PHA=31.

Methods

bin_corrtags

Bin one or more corrtag event lists into a 2D image.

bin_superdark

create_superdark

fix_gsag

from_asdf

get_binning_pars

get_bpix_regions

get_hotspots

get_pha_bins

get_reffile

get_xy_limits

plot_superdarks

screen_counts

write_cube_fits

write_fits

write_superdark

bin_corrtags(corrtag_list, phastart, phaend, xtype='XCORR', ytype='YCORR', sdqflags=0)[source]

Bin one or more corrtag event lists into a 2D image.

Modifed from /user/jotaylor/git/jotools/utils.py

Parameters:
  • corrtag_list (str) – list of datasets to combine into an image

  • xtype (str, optional) – X-coordinate type

  • ytype (str, optional) – Y-coordinate type

Returns:

image (np.ndarray) – 2D image of the corrtag