from todloop.routines import DataLoader from todloop.tod import TODLoader, TODInfoLoader from todloop.base import TODLoop from routines import PlotGlitches from calibration.routines import FixOpticalSign, CalibrateTOD tod_id = 1300 loop = TODLoop() loop.add_tod_list("../data/s16_pa3_list.txt") #will load the data stored in the folder specified one by one #and store the loaded data in the shared date store under a key called data loop.add_routine(DataLoader(input_dir="../outputs/s16_pa3_list/cosig/", output_key="cuts")) 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")) loop.add_routine(PlotGlitches(tag=tod_id,tod_key="tod_data", cosig_key="cuts")) loop.run(tod_id,tod_id + 1)
from todloop.base import TODLoop from todloop.routines import DataLoader from todloop.filters import DurationFilter, PixelFilter, SpreadFilter from routines import GetTracks, PlotTracks loop = TODLoop() loop.add_tod_list("data/s17_pa4_sublist.txt") # add sample handler loop.add_routine(DataLoader(input_dir="outputs/s17_pa4_sublist_cosig/")) #loop.add_routine(DataLoader(input_dir="outputs/coincident_signals_subset/")) # add filters #loop.add_routine(DurationFilter(max_duration=10)) #loop.add_routine(PixelFilter(max_pixels=5)) # add main routine loop.add_routine(GetTracks(season='2017', array='AR4')) #loop.add_routine(SpreadFilter(max_spread=1)) # add plot routine #loop.add_routine(PlotTracks(output_dir="outputs/get_tracks_filtered/", season='2017', array='AR4')) loop.add_routine( PlotTracks(output_dir="outputs/s17_pa4_sublist_tracks/", season='2017', array='AR4')) # specify range of tods of interests loop.run(0, 2)
from todloop.routines import DataLoader from todloop.tod import TODLoader from todloop.base import TODLoop from routines import TimeSeries, PlotGlitches, Energy, SaveEvents, NPixelStudy, EnergyStudy, CRCorrelationFilter from calibration.routines import FixOpticalSign, CalibrateTOD """ INITIALIZE TODLoop """ loop = TODLoop() tod_id = 0 loop.add_tod_list("../data/covered_tods.txt") loop.add_routine( DataLoader(input_dir="../outputs/covered_tods_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( Energy(timeseries_key="timeseries", output_key="energy_calculator")) loop.add_routine( CRCorrelationFilter(timeseries_key="timeseries", cosig_key="cuts", tod_key="tod_data", output_key="cr_cuts")) #loop.add_routine(PlotGlitches(tag=tod_id,cosig_key="cr_cuts",tod_key="tod_data",timeseries_key = "timeseries"))
from todloop.routines import DataLoader 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"))