Amp Widget
from hetdex_api.amp_widget import AmpWidget
# Can either input a detectid. A red circle will indicate the region on the detector where the emission line is found on the highest weight fiber
AW = AmpWidget(detectid = 4013993285)
# or a shotid/multiframe combo. A red border will appear around widget if the amplifier is flagged as a bad amp
AW = AmpWidget(multiframe='multi_322_084_062_RL', shotid=20200306026)
Basic API behind AmpWidget
from astrowidgets import ImageWidget
from hetdex_api.shot import get_image2D_amp
mf = 'multi_322_084_062_RL'
shotid = 20200227016
# 2D frame you want to grab. Options are:
# 'image' - this is the 2D frame, bias, flat corrected in counts
# 'clean_image' - this is the 2D sky subtracted frame in counts
# 'error' - this is the 2D error image in counts
imtype = 'clean_image'
im = get_image2D_amp(shotid, multiframe=mf, imtype=imtype, survey='hdr2.1', expnum=3)
imw = ImageWidget()
imw.load_array(im)
imw