calc_relative_sensitivity

zdm.survey.calc_relative_sensitivity(DM_frb, DM, w, fbar, t_res, nu_res, Nchan=336, max_idt=None, max_dm=None, model='Quadrature', dsmear=True, edir=None, max_iw=None, max_meth=0)[source]

Calculates DM-dependent sensitivity

This function adjusts sensitivity to a given burst as a function of DM.

It includes DM smearing between channels, burst intrinsic width, the observation frequency time- and frequency-resolutions etc.

NOTE: DM_frb only used if dsmear = True: combine these to default to None?

Parameters:
  • [float] (w) – measured DM of a particular FRB. Used only if dsmear=True.

  • pc/cm3 (DMs [np.ndarray] DMs at which to calculate the DM bias effect.)

  • [float] – FRB width [ms]

  • fbar – mean frequency of the observation [Mhz]

  • t_res – time resolution of the observation [ms]

  • nu_res – frequency resolution of the observation [Mhz]

  • model

    Quadrature,Sammons, or CHIME: method to calculate bias. NOTE: Quadrature_s and Sammons_s should be input to this function as

    just Quadrature and Sammons respectively

  • dsmear – subtract DM smearing from measured width to calculate intrinsic

  • [string (edir) – directory containing efficiency files to be loaded

  • optional] – directory containing efficiency files to be loaded

  • [int (maxmeth) – maximum integer width of the search

  • optional] – maximum integer width of the search

  • [int – 0: ignore maximum width 1: truncate sensitivity at maximum width 2: scale sensitivity as 1/w at maximum width

  • optional] – 0: ignore maximum width 1: truncate sensitivity at maximum width 2: scale sensitivity as 1/w at maximum width