fileroot = fileroot + 'scaleddown_' else: footprints_hp = standard_goals(nside=nside) observatory = Model_observatory(nside=nside) conditions = observatory.return_conditions() footprints = Footprint(conditions.mjd_start, sun_RA_start=conditions.sun_RA_start, nside=nside) for i, key in enumerate(footprints_hp): footprints.footprints[i, :] = footprints_hp[key] # Set up the DDF surveys to dither dither_detailer = detailers.Dither_detailer(per_night=per_night, max_dither=max_dither) details = [detailers.Camera_rot_detailer(min_rot=-camera_ddf_rot_limit, max_rot=camera_ddf_rot_limit), dither_detailer] euclid_detailers = [detailers.Camera_rot_detailer(min_rot=-camera_ddf_rot_limit, max_rot=camera_ddf_rot_limit), detailers.Euclid_dither_detailer()] ddf_dict, ha_dict = ddf_info(nexp=nexp) ddf_times = read_times(filename=ddf_file, end_time=float_time) # let's map the names name_dict = {'COSMOS_g': 'DD:COSMOS', 'Euclid_g': 'DD:EDFS', 'ECDFS_g': 'DD:ECDFS', 'Elias_S1_g': 'DD:ELAISS1', 'XMM-LSS_g':'DD:XMM-LSS'} for key in name_dict: ddf_times['label'][np.where(ddf_times['label'] == key)] = name_dict[key] ddfs = [] for ddf_name in ['DD:ELAISS1', 'DD:XMM-LSS', 'DD:ECDFS', 'DD:COSMOS']: good = np.where(ddf_times['label'] == ddf_name) ddfs.append(Scheduled_ddfs(ddf_times[good], ddf_dict, ha_dict, detailers=details)) # Euclid seperate to get the right dither detailer on there for ddf_name in ['DD:EDFS']: good = np.where(ddf_times['label'] == ddf_name)
conditions = observatory.return_conditions() footprints = Footprint(conditions.mjd_start, sun_RA_start=conditions.sun_RA_start, nside=nside) for i, key in enumerate(footprints_hp): footprints.footprints[i, :] = footprints_hp[key] # Set up the DDF surveys to dither dither_detailer = detailers.Dither_detailer(per_night=per_night, max_dither=max_dither) details = [ detailers.Camera_rot_detailer(min_rot=-camera_ddf_rot_limit, max_rot=camera_ddf_rot_limit), dither_detailer ] ddf_dict, ha_dict = ddf_info() temp = np.load('test_sched.npz') ddf_times = temp['results'].copy() temp.close() #ddf_times = read_times(filename=ddf_file, end_time=float_time) ddfs = [Scheduled_ddfs(ddf_times, ddf_dict, ha_dict, detailers=details)] greedy = gen_greedy_surveys(nside, nexp=nexp, footprints=footprints) blobs = generate_blobs(nside, nexp=nexp, footprints=footprints) surveys = [ddfs, blobs, greedy] run_sched(surveys, survey_length=survey_length, verbose=verbose, fileroot=os.path.join(outDir, fileroot + file_end), extra_info=extra_info,