Beispiel #1
0
    global_DR8_mtl_file_dark = os.path.join(
        output_path, 'global_DR8_mtl_{}.fits'.format(program))
    global_DR8_truth_file_dark = os.path.join(
        output_path, 'global_DR8_truth_{}.fits'.format(program))
    program = 'bright'
    global_DR8_mtl_file_bright = os.path.join(
        output_path, 'global_DR8_mtl_{}.fits'.format(program))
    global_DR8_truth_file_bright = os.path.join(
        output_path, 'global_DR8_truth_{}.fits'.format(program))
    global_DR8_sky_file = os.path.join(output_path, "global_DR8_sky.fits")

make_targets = False
if make_targets:

    patch_DR8_mtl_file_dark = mb.make_patch_file(global_DR8_mtl_file_dark,
                                                 ra_min, ra_max, dec_min,
                                                 dec_max)
    patch_DR8_mtl_file_bright = mb.make_patch_file(global_DR8_mtl_file_bright,
                                                   ra_min, ra_max, dec_min,
                                                   dec_max)
    patch_DR8_sky_file = mb.make_patch_file(global_DR8_sky_file, ra_min,
                                            ra_max, dec_min, dec_max)
    patch_DR8_truth_file_dark = mb.make_patch_file(global_DR8_truth_file_dark,
                                                   ra_min, ra_max, dec_min,
                                                   dec_max)
    patch_DR8_truth_file_bright = mb.make_patch_file(
        global_DR8_truth_file_bright, ra_min, ra_max, dec_min, dec_max)

make_tiles = False
if make_tiles:
Beispiel #2
0
import multibatch as mb

make_targets = False
if make_targets:
    global_DR8_mtl_file_dark = mb.make_global_DR8_mtl(output_path='targets',
                                                      program='dark')
    global_DR8_mtl_file_bright = mb.make_global_DR8_mtl(output_path='targets',
                                                        program='bright')
    global_DR8_sky_file = mb.make_global_DR8_sky(output_path='targets')
    global_DR8_truth_file_dark = mb.make_global_DR8_truth(
        global_DR8_mtl_file_dark, output_path='targets', program='dark')
    global_DR8_truth_file_bright = mb.make_global_DR8_truth(
        global_DR8_mtl_file_bright, output_path='targets', program='bright')

    patch_DR8_mtl_file_dark = mb.make_patch_file(global_DR8_mtl_file_dark)
    patch_DR8_mtl_file_bright = mb.make_patch_file(global_DR8_mtl_file_bright)
    patch_DR8_sky_file = mb.make_patch_file(global_DR8_sky_file)
    patch_DR8_truth_file_dark = mb.make_patch_file(global_DR8_truth_file_dark)
    patch_DR8_truth_file_bright = mb.make_patch_file(
        global_DR8_truth_file_bright)

make_tiles = True
if make_tiles:
    surveysim_file = "/global/cfs/cdirs/desi/users/schlafly/surveysim/exposures_nopass7.fits"

    # batches for the first year of the survey (all the footprint is available) with different cadences
    n = mb.prepare_tile_batches(surveysim_file,
                                output_path='footprint_month',
                                program='dark',
                                start_day=0,
                                end_day=365,