Exemplo n.º 1
0
def make_image_1():

    image = scaled_array.ScaledSquarePixelArray(array=10.0 * np.ones((4, 4)),
                                                pixel_scale=6.0)
    psf = im.PSF(array=11.0 * np.ones((3, 3)),
                 pixel_scale=6.0,
                 renormalize=False)
    noise_map = im.NoiseMap(array=12.0 * np.ones((4, 4)), pixel_scale=6.0)
    background_noise_map = im.NoiseMap(array=13.0 * np.ones((4, 4)),
                                       pixel_scale=6.0)
    poisson_noise_map = im.PoissonNoiseMap(array=14.0 * np.ones((4, 4)),
                                           pixel_scale=6.0)
    exposure_time_map = im.ExposureTimeMap(array=15.0 * np.ones((4, 4)),
                                           pixel_scale=6.0)
    background_sky_map = scaled_array.ScaledSquarePixelArray(array=16.0 *
                                                             np.ones((4, 4)),
                                                             pixel_scale=6.0)

    return im.CCDData(image=image,
                      pixel_scale=6.0,
                      psf=psf,
                      noise_map=noise_map,
                      background_noise_map=background_noise_map,
                      poisson_noise_map=poisson_noise_map,
                      exposure_time_map=exposure_time_map,
                      background_sky_map=background_sky_map)
Exemplo n.º 2
0
def make_ccd():

    image = scaled_array.ScaledSquarePixelArray(array=np.ones((4, 4)), pixel_scale=3.0)
    psf = ccd.PSF(array=np.ones((3, 3)), pixel_scale=3.0, renormalize=False)
    noise_map = ccd.NoiseMap(array=2.0 * np.ones((4, 4)), pixel_scale=3.0)
    background_noise_map = ccd.NoiseMap(array=3.0 * np.ones((4, 4)), pixel_scale=3.0)
    poisson_noise_map = ccd.PoissonNoiseMap(array=4.0 * np.ones((4, 4)), pixel_scale=3.0)
    exposure_time_map = ccd.ExposureTimeMap(array=5.0 * np.ones((4, 4)), pixel_scale=3.0)
    background_sky_map = scaled_array.ScaledSquarePixelArray(array=6.0 * np.ones((4, 4)), pixel_scale=3.0)

    return ccd.CCDData(image=image, pixel_scale=3.0, psf=psf, noise_map=noise_map,
                       background_noise_map=background_noise_map, poisson_noise_map=poisson_noise_map,
                       exposure_time_map=exposure_time_map, background_sky_map=background_sky_map)
Exemplo n.º 3
0
def make_lens_image():
    ccd_data = ccd.CCDData(np.array(np.zeros(shape)),
                           pixel_scale=1.0,
                           psf=ccd.PSF(np.ones((3, 3)), pixel_scale=1.0),
                           noise_map=ccd.NoiseMap(np.ones(shape),
                                                  pixel_scale=1.0))
    mask = msk.Mask.circular(shape=shape, pixel_scale=1, radius_arcsec=3.0)
    return li.LensData(ccd_data=ccd_data, mask=mask)
Exemplo n.º 4
0
def make_image():
    image = scaled_array.ScaledSquarePixelArray(array=np.ones((3, 3)),
                                                pixel_scale=1.0)
    noise_map = im.NoiseMap(array=2.0 * np.ones((3, 3)), pixel_scale=1.0)
    psf = im.PSF(array=3.0 * np.ones((1, 1)), pixel_scale=1.0)

    return im.CCDData(image=image,
                      pixel_scale=1.0,
                      noise_map=noise_map,
                      psf=psf)
Exemplo n.º 5
0
def make_ccd():
    image = scaled_array.ScaledSquarePixelArray(array=np.ones((3, 3)),
                                                pixel_scale=1.0)
    noise_map = im.NoiseMap(array=2.0 * np.ones((3, 3)), pixel_scale=1.0)
    psf = im.PSF(array=3.0 * np.ones((1, 1)), pixel_scale=1.0)

    return im.CCDData(image=image,
                      pixel_scale=1.0,
                      noise_map=noise_map,
                      psf=psf,
                      exposure_time_map=2.0 * np.ones((3, 3)),
                      background_sky_map=3.0 * np.ones((3, 3)))
Exemplo n.º 6
0
def make_ccd_data():
    pixel_scale = 1.0

    image = scaled_array.ScaledSquarePixelArray(array=np.array(
        np.zeros(shape)),
                                                pixel_scale=pixel_scale)
    psf = ccd.PSF(array=np.ones((3, 3)), pixel_scale=pixel_scale)
    noise_map = ccd.NoiseMap(np.ones(shape), pixel_scale=1.0)

    return ccd.CCDData(image=image,
                       pixel_scale=pixel_scale,
                       psf=psf,
                       noise_map=noise_map)