def single_display(image_id, frame=1): """ Display the flat field reduced image for a given image ID (as defined in the GDB). """ _prep_ds9() produce_flat(image_id, True) print "single", image_id filename, cam = get_cam_flat_filename(image_id) iraf.display(filename, frame)
def get_image_data(image_id): filename, _ = get_cam_flat_filename(image_id) produce_flat(image_id, True) return getdata(filename)