ilex.master_proc

master_proc_data(stk, freq, base_data_list, par: dict = {}, debias=False, ratio=False, ratio_rms_threshold=None)[source]
Info:

Master function for processing data

Parameters:
  • stk (dict[np.memmap]) – Dictionary of memory maps of Stokes Dynamic spectra

  • freq ((ndarray)) – Array of frequencies before cropping/averaging (processing)

  • base_data_list (List) – List of requested data products

  • par (Dict) –

    Parameters for data processing, the following are required

    [t_crop]: Crop in Time phase (default = [0.0, 1.0])

    [f_crop]: Crop in Freq phase (default = [0.0, 1.0])

    [terr_crop]: Crop of Error Time phase (default = None)

    [tN]: Factor in Time average (default = 1)

    [fN]: Factor in Freq average (default = 1)

    [tW]: Time weights (default = None)

    [fW]: Freq weifhts (default = None)

    [norm]: Method of normalisation (defualt = “None”)

    [RM]: Rotation Measure (default = 0.0)

    [cfreq]: Central Frequency (default = 1271.5)

    [f0]: reference frequency (default = cfreq)

    [pa0]: PA at f0 (default = 0.0)

  • debias (bool, optional) – if True, debias L and P polarisations if requested

  • ratio (bool, optional) – If True, calculates Stokes ratios X/I for all t and f products

  • ratio_rms_threshold (float, optional) – Mask Stokes ratios by ratio_rms_threshold * rms

Returns:

  • _ds (dict) – Dictionary of processed dynamic spectra

  • _t (dict) – Dictionary of processed time series data

  • _f (dict) – Dictionary of processed spectra data

  • freq (ndarray) – Array of Frequencies in MHz