TwiceAsNice
2019-02-18
|
Functions | |
def | set_mask_to_loop (loopMask) |
def | get_mask_pixels (full_mask) |
def | set_partialMask (full_MPmask, maskSNRcut, sky) |
def | get_save_sky_data () |
def laospy.mask.get_mask_pixels | ( | full_mask | ) |
Returns flat array of illuminated pixels from the mask provided. The mask can be 80x80 or 40x40 or 20x20. It only considers the first qudrant elements. The pixel position can be from 0 to 1600 (corresponding to 40x40 array)
def laospy.mask.get_save_sky_data | ( | ) |
Get Sky frames to estmate the noise. The stars should be in the shadow position. The data is downloaded and saved to local drive. This will be used again to get the partial mask again.
def laospy.mask.set_mask_to_loop | ( | loopMask | ) |
Sets the received mask to the loop service. The mask passed should be of the same size as that of the running HWS CCD program (80x80 or 40x40 or 20x20). Wrong shape will raise an exception
def laospy.mask.set_partialMask | ( | full_MPmask, | |
maskSNRcut, | |||
sky | |||
) |
The full-illumination mask, the SNR threshold value, and the sky frames should be passed. With the given threshold, the saved sky frame, and the image taken with stars, a partial illumiantion mask is generated, and returned.