Exemplo n.º 1
0
def basic_detector():
    # An image plane image with background=100 and object_flux=1
    det = Detector(_implane_header())
    n = det.header["NAXIS1"]
    im = np.ones((n, n)) * 100  # background level = 100
    im[n // 2 - 5:n // 2 + 5,
       n // 2 - 5:n // 2 + 5] += 1  # object flux level += 1
    det.hdu.data = im

    return det
    def test_ignores_classes_other_than_fov(self, ncpa_kwargs):
        implane = ImagePlane(_implane_header())
        implane.hdu.data[1, 1] = 1
        ncpa = NonCommonPathAberration(**ncpa_kwargs)
        new_implane = ncpa.apply_to(implane)

        assert np.all(new_implane.data == implane.data)

        if PLOTS:
            plt.imshow(new_implane.image[:5,:5])
            plt.show()
def implane_hdr():
    return hdrs._implane_header()
Exemplo n.º 4
0
def implane_hdr():
    return _implane_header()
Exemplo n.º 5
0
def basic_image_plane():
    implane = ImagePlane(_implane_header())

    return implane