示例#1
0
    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:
    sbatch = int(sys.argv[1])
    mxbatch = int(sys.argv[2])
    #for i in range(sbatch,mxbatch+1):
    mb.run_strategy(global_DR8_mtl_file_dark,
                    global_DR8_truth_file_dark,
                    global_DR8_sky_file,
                    output_path=darkout,
                    batch_path=foot,
                    program="dark",
                    sbatch=sbatch,
                    mxbatch=mxbatch)  #,sbatch=i,mxbatch=i+1)
示例#2
0
import multibatch as mb

mb.run_strategy("targets/global_DR8_mtl_dark.fits",
                "targets/global_DR8_truth_dark.fits",
                "targets/global_DR8_sky.fits",
                output_path="test_dark_global_semester",
                batch_path="footprint_semester",
                program="dark")

#mb.run_strategy("targets/global_DR8_mtl_dark.fits", "targets/global_DR8_truth_dark.fits", "targets/global_DR8_sky.fits",
#             output_path="test_dark_global_month", batch_path="footprint_month", program="dark")

#mb.run_strategy("targets/patch_DR8_mtl_dark.fits", "targets/patch_DR8_truth_dark.fits", "targets/patch_DR8_sky.fits",
#             output_path="test_dark_patch_semester", batch_path="footprint_patch_semester", program="dark")

#mb.run_strategy("targets/patch_DR8_mtl_dark.fits", "targets/patch_DR8_truth_dark.fits", "targets/patch_DR8_sky.fits",
#             output_path="test_dark_patch_month", batch_path="footprint_patch_month", program="dark")