Ejemplo n.º 1
0
    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:

    # 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=foot,
                                program='dark',
                                start_day=0,
                                end_day=1826,
                                batch_cadence=batch_cadence,
                                use_last_date=True)
    #n = mb.prepare_tile_batches(surveysim_file, output_path=foot, program='bright', start_day=365, end_day=730, batch_cadence=batch_cadence)

    # batches for the whole duration of the survey, restricted to a small region on the sky.
    #n = mb.prepare_tile_batches(surveysim_file, output_path='footprint_patch_month', program='dark',
    #                             start_day=0, end_day=2000, batch_cadence=batch_cadence,select_subset_sky=True,
    #                            ra_min=ra_min, ra_max=ra_max, dec_min=dec_min, dec_max=dec_max)
    #n = mb.prepare_tile_batches(surveysim_file, output_path='footprint_patch_month', program='bright',
    #                             start_day=0, end_day=2000, batch_cadence=batch_cadence, select_subset_sky=True,
    #                            ra_min=ra_min, ra_max=ra_max, dec_min=dec_min, dec_max=dec_max)

run_fa = True
if run_fa:
Ejemplo n.º 2
0
    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,
                                batch_cadence=28)
    n = mb.prepare_tile_batches(surveysim_file,
                                output_path='footprint_month',
                                program='bright',
                                start_day=0,
                                end_day=365,
                                batch_cadence=28)
    n = mb.prepare_tile_batches(surveysim_file,
                                output_path='footprint_semester',
                                program='dark',
                                start_day=0,
                                end_day=365,
                                batch_cadence=180)
    n = mb.prepare_tile_batches(surveysim_file,
Ejemplo n.º 3
0
                                                   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:

    # 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=foot,
                                program='dark',
                                start_day=729,
                                end_day=1826,
                                batch_cadence=batch_cadence)
    #n = mb.prepare_tile_batches(surveysim_file, output_path=foot, program='bright', start_day=365, end_day=730, batch_cadence=batch_cadence)

    # batches for the whole duration of the survey, restricted to a small region on the sky.
    #n = mb.prepare_tile_batches(surveysim_file, output_path='footprint_patch_month', program='dark',
    #                             start_day=0, end_day=2000, batch_cadence=batch_cadence,select_subset_sky=True,
    #                            ra_min=ra_min, ra_max=ra_max, dec_min=dec_min, dec_max=dec_max)
    #n = mb.prepare_tile_batches(surveysim_file, output_path='footprint_patch_month', program='bright',
    #                             start_day=0, end_day=2000, batch_cadence=batch_cadence, select_subset_sky=True,
    #                            ra_min=ra_min, ra_max=ra_max, dec_min=dec_min, dec_max=dec_max)

run_fa = True
if run_fa:
    sbatch = int(sys.argv[1])
Ejemplo n.º 4
0
Archivo: test.py Proyecto: tskisner/LSS
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:
    

    # 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=foot, program='dark', start_day=0, end_day=365, batch_cadence=batch_cadence) 
    n = mb.prepare_tile_batches(surveysim_file, output_path=foot, program='bright', start_day=0, end_day=365, batch_cadence=batch_cadence) 

    # batches for the whole duration of the survey, restricted to a small region on the sky.
    #n = mb.prepare_tile_batches(surveysim_file, output_path='footprint_patch_month', program='dark', 
    #                             start_day=0, end_day=2000, batch_cadence=batch_cadence,select_subset_sky=True, 
    #                            ra_min=ra_min, ra_max=ra_max, dec_min=dec_min, dec_max=dec_max) 
    #n = mb.prepare_tile_batches(surveysim_file, output_path='footprint_patch_month', program='bright', 
    #                             start_day=0, end_day=2000, batch_cadence=batch_cadence, select_subset_sky=True,
    #                            ra_min=ra_min, ra_max=ra_max, dec_min=dec_min, dec_max=dec_max) 

run_fa = True
if run_fa:
    sbatch = int(sys.argv[1])
    mxbatch = int(sys.argv[2])
    for i in range(sbatch,mxbatch+1):