Exemple #1
0
 def __init__(self, tag, cosig_key, tod_key, timeseries_key):
     Routine.__init__(self)
     self._tag = tag
     self._cosig_key = cosig_key
     self._tod_key = tod_key
     self._timeseries_key = timeseries_key
     self._pr = None
Exemple #2
0
 def __init__(self, tag, cosig_key, tod_key, energy_key, output_key):
     Routine.__init__(self)
     self._tag = tag
     self._cosig_key = cosig_key
     self._tod_key = tod_key
     self._energy_key = energy_key
     self._output_key = output_key
Exemple #3
0
 def __init__(self, input_key, output_key, **params):
     """This routine substracts the A(chi) signal from HWP"""
     Routine.__init__(self)
     self._input_key = params.get('input_key', None)
     self._output_key = params.get('output_key', None)
     self._hwp_par = params.get('hwp_par')
     self._depot_path = params.get('depot', None)
Exemple #4
0
 def __init__(self, output_key, input_key, ra_range=None, dec_range=None):
     """Scripts that run during initialization of the routine"""
     Routine.__init__(self)
     self._input_key = input_key
     self._ra_range = ra_range
     self._dec_range = dec_range
     self._output_key = output_key
Exemple #5
0
 def __init__(self,
              input_key='tod_data',
              output_key='time_constants',
              abspath=False):
     Routine.__init__(self)
     self._input_key = input_key
     self._output_key = output_key
     self._abspath = abspath
Exemple #6
0
 def __init__(self,
              input_key="tod_data",
              output_key="tod_data",
              abspath=False):
     Routine.__init__(self)
     self._fb = None
     self._abspath = abspath
     self._input_key = input_key
     self._output_key = output_key
Exemple #7
0
 def __init__(self, detuid, tag, cosig_key, tod_key, timeseries_key,
              time_constants):
     Routine.__init__(self)
     self._detuid = detuid
     self._tag = tag
     self._cosig_key = cosig_key
     self._tod_key = tod_key
     self._timeseries_key = timeseries_key
     self._time_constants = time_constants
     self._pr = None
Exemple #8
0
 def __init__(self, **params):
     """This routine fit / removes synchronous pickup"""
     Routine.__init__(self)
     self.inputs = params.get('inputs', None)
     self.outputs = params.get('outputs', None)
     self._remove_sync = params.get('remove_sync', False)
     self._force_sync = params.get('force_sync', False)
     self._tag_sync = params.get('tag_sync', None)
     self._depot_path = params.get('depot', None)
     self._write_depot = params.get('write_depot', False)
Exemple #9
0
 def __init__(self, **params):
     """A routine that performs the partial cuts"""
     Routine.__init__(self)
     self.inputs = params.get('inputs', None)
     self.outputs = params.get('outputs', None)
     self._tag_partial = params.get('tag_partial', None)
     self._force_partial = params.get('force_partial', False)
     self._glitchp = params.get('glitchp', {})
     self._include_mce = params.get('include_mce', True)
     self._depot_path = params.get('depot', None)
     self._no_noise = params.get('no_noise', True)
     self._write_depot = params.get('write_depot', False)
Exemple #10
0
 def __init__(self, **params):
     """A routine that perform the planet cuts"""
     Routine.__init__(self)
     self.inputs = params.get('inputs', None)
     self.outputs = params.get('outputs', None)
     self._no_noise = params.get('no_noise', True)
     self._tag_planet = params.get('tag_planet', None)
     self._pointing_par = params.get('pointing_par', None)
     self._mask_params = params.get('mask_params', {})
     self._shift_params = params.get('mask_shift_generator', None)
     self._depot_path = params.get('depot', None)
     self._write_depot = params.get('write_depot', False)
Exemple #11
0
 def __init__(self,
              timeseries_key,
              cosig_key,
              tod_key,
              output_key,
              coeff=0.8):
     Routine.__init__(self)
     self._timeseries_key = timeseries_key
     self._cosig_key = cosig_key
     self._tod_key = tod_key
     self._pr = None
     self._template = None
     self._output_key = output_key
     self._coeff = coeff
     self._tag = None
Exemple #12
0
    def __init__(self, **params):
        """A routine that cuts the point sources"""
        Routine.__init__(self)
        # retrieve the inputs and outputs keys from data store
        self.inputs = params.get('inputs', None)
        self.outputs = params.get('outputs', None)

        # retrieve other parameters
        self._tag_source = params.get('tag_source', None)
        self._source_list = params.get('source_list', None)
        self._no_noise = params.get('no_noise', True)
        self._pointing_par = params.get('pointing_par', None)
        self._mask_params = params.get('mask_params', {})
        self._shift_params = params.get('mask_shift_generator', None)
        self._depot_path = params.get('depot', None)
        self._write_depot = params.get('write_depot', False)
Exemple #13
0
    def __init__(self, event_key, tod_key, list_of_events,
                 output_path):
        """This routine takes in a list of events (ids) and over lay them on
        top of each other. The program will loop through events stored
        in each pickle file and filter out the events specified. These
        events are them scaled to 0 and 1 and plotted in an overlaying
        plot to visualize the difference in time decay profile.

        Args:
            event_key (str): a key to retrieve events in data store
            tod_key (str): a key to retrieve tod data in data store
            list_of_events (list): a list of event ids to overlay
            output_path (str): the path to output the figure

        """
        Routine.__init__(self)
        self._list_of_events = list_of_events
        self._event_key = event_key
        self._tod_key = tod_key
        self._output_path = output_path
        self._ax = None
        self._fig = None
Exemple #14
0
 def __init__(self, data='frb180110.txt', tau=0.2):
     Routine.__init__(self)
     self._data = data
     self._tau = tau
Exemple #15
0
 def __init__(self, event_key="events"):
     Routine.__init__(self)
     self._event_key = event_key
     self._hist = None
Exemple #16
0
 def __init__(self, allevents_key="peaks", event_key="frb_cuts"):
     Routine.__init__(self)
     self._allevents_key = allevents_key
     self._event_key = event_key
     self._hist1 = None
Exemple #17
0
 def __init__(self, **params):
     Routine.__init__(self)
     self.inputs = params.get('inputs')
     self.outputs = params.get('outputs')
Exemple #18
0
 def __init__(self, **params):
     Routine.__init__(self)
     self.inputs = params.get('inputs', None)
     self.outputs = params.get('outputs', None)
     self._dsStep = params.get('dsStep', None)
     self._window = params.get('window', None)
Exemple #19
0
 def __init__(self, input_key, output_key):
     Routine.__init__(self)
     self._input_key = input_key
     self._output_key = output_key
Exemple #20
0
 def __init__(self, timeseries_key, output_key):
     Routine.__init__(self)
     self._timeseries_key = timeseries_key
     self._output_key = output_key
Exemple #21
0
 def __init__(self, tod_key, output_key):
     Routine.__init__(self)
     self._tod_key = tod_key
     self._pr = None
     self._output_key = output_key
Exemple #22
0
 def __init__(self, event_key, tod_key):
     Routine.__init__(self)
     self._event_key = event_key
     self._tod_key = tod_key