from todloop.tod import TODLoader from todloop.base import TODLoop from routines import TimeSeries, PlotGlitches, Energy, SaveEvents, NPixelStudy, EnergyStudy, CRCorrelationFilter, RaDecFilter, Timer from calibration.routines import FixOpticalSign, CalibrateTOD """ INITIALIZE TODLoop """ loop = TODLoop() tod_id = 15 loop.add_routine(Timer()) """ ICECUBE """ #""" loop.add_tod_list("../data/s17_icecube_list.txt") loop.add_skip([128, 129, 130, 131]) loop.add_routine( DataLoader(input_dir="../outputs/s17_icecube_list/cosig/", output_key="cuts")) #""" """ LOAD TOD DATA """ loop.add_routine(TODLoader(output_key="tod_data")) loop.add_routine(FixOpticalSign(input_key="tod_data", output_key="tod_data")) loop.add_routine(CalibrateTOD(input_key="tod_data", output_key="tod_data")) """ ROUTINES """ loop.add_routine(TimeSeries(tod_key="tod_data", output_key="timeseries")) loop.add_routine(
from todloop.base import TODLoop from todloop.tod import TODLoader from todloop.routines import Logger, DataLoader from routines import PlotEvents from todloop.event import NPixelFilter, DurationFilter, CoeffFilter from calibration.routines import FixOpticalSign, CalibrateTOD loop = TODLoop() loop.add_tod_list("../data/s16_pa3_list.txt") loop.add_skip([1029, 1723]) # problematic ones loop.add_routine( DataLoader(input_dir="../outputs/s16_pa3_list/events/", output_key="events")) loop.add_routine( NPixelFilter(min_pixels=0, max_pixels=8, input_key="events", output_key="events")) loop.add_routine( DurationFilter(min_duration=0, max_duration=20, input_key="events", output_key="events")) loop.add_routine( CoeffFilter(min_coeff=0.8, max_coeff=1, input_key="events", output_key="events")) loop.add_routine(TODLoader(output_key="tod_data")) loop.add_routine(FixOpticalSign(input_key="tod_data", output_key="tod_data")) loop.add_routine(CalibrateTOD(input_key="tod_data", output_key="tod_data"))
from todloop.event import LoadRaDec, NPixelFilter, CoeffFilter, DurationFilter from todloop.base import TODLoop from calibration.routines import FixOpticalSign from todloop.routines import DataLoader, Logger from todloop.tod import TODLoader from plot_events.routines import PlotEvents from cr_hist.routines import RaDecStudy loop = TODLoop() loop.add_tod_list("../data/s17_icecube_list.txt") loop.add_skip([128, 129, 130, 131]) # problematic ones loop.add_routine( DataLoader(input_dir="../outputs/s17_icecube_list/events/", output_key="events")) #loop.add_routine(NPixelFilter(min_pixels=0, max_pixels=3, input_key="events", output_key="events")) #loop.add_routine(DurationFilter(min_duration=10, max_duration=60, input_key="events", output_key="events")) loop.add_routine( CoeffFilter(min_coeff=0.0, input_key="events", output_key="events")) # loop.add_routine(TODLoader(output_key="tod-data")) # loop.add_routine(FixOpticalSign(input_key="tod-data", output_key="tod-data")) # loop.add_routine(Logger(input_key="events")) # loop.add_routine(PlotEvents(event_key="events", tod_key="tod-data")) loop.add_routine(LoadRaDec(input_key="events", output_key="events")) loop.add_routine( RaDecStudy(input_key="events", ra_range=[1.2, 1.4], dec_range=[0.08, 0.11])) loop.run(0, 127)
from todloop.event import LoadRaDec, NPixelFilter, CoeffFilter, DurationFilter from todloop.base import TODLoop from calibration.routines import FixOpticalSign from todloop.routines import DataLoader, Logger from todloop.tod import TODLoader from plot_events.routines import PlotEvents from routines import RaDecStudy loop = TODLoop() loop.add_tod_list("../data/s16_pa3_list.txt") loop.add_skip([340, 956, 1041, 1066, 1099, 1609, 3791, 4389,4451, 5259,6978]) # problematic ones loop.add_routine(DataLoader(input_dir="../outputs/s16_pa3_list/events/", output_key="events")) loop.add_routine(NPixelFilter(min_pixels=0, max_pixels=3, input_key="events", output_key="events")) loop.add_routine(DurationFilter(min_duration=10, max_duration=60, input_key="events", output_key="events")) loop.add_routine(CoeffFilter(min_coeff=0.8, input_key="events", output_key="events")) # loop.add_routine(TODLoader(output_key="tod-data")) # loop.add_routine(FixOpticalSign(input_key="tod-data", output_key="tod-data")) # loop.add_routine(Logger(input_key="events")) # loop.add_routine(PlotEvents(event_key="events", tod_key="tod-data")) loop.add_routine(LoadRaDec(input_key="events", output_key="events")) loop.add_routine(RaDecStudy(input_key="events")) loop.run(0, 10000)