surveys_and_grids

zdm.loading.surveys_and_grids(init_state=None, alpha_method=1, survey_names=None, nz: int = 500, ndm: int = 1400, zmax=5, dmmax=7000, NFRB=None, repeaters=False, sdir=None, edir=None, rand_DMG=False, discard_empty=False, state_dict=None, survey_dict=None, verbose=False)[source]

Load up a survey and grid for a real dataset

Parameters:
  • init_state (State, optional) – Initial state

  • survey_name (str, optional) – Defaults to ‘CRAFT/CRACO_1_5000’.

  • state_dict (dict, optional) – Used to init state instead of alpha_method, lum_func parameters

  • survey_names (list, optional) – List of surveys to load

  • add_20220610A (bool, optional) – Include this FRB (a bit of a hack)

  • nz (int, optional) – Number of redshift bins

  • ndm (int, optional) – Number of DM bins

  • zmax (float,optional) – Maximum value of redshift

  • dmmax (float,optional) – Maximum value of dispersion measure

  • edir (string, optional) – Directory containing efficiency files if using FRB-specific responses

  • rand_DMG (bool, optional) – If true, randomise the galactic DM - for MCMC studies

  • discard_empty (bool, optional) – If true, does not calculate empty surveys (mostly for after latitude cuts)

  • survey_dict (dict,None) – list of survey metadata and values to apply

Raises:

IOError – [description]

Returns:

lists of Survey, Grid objects

Return type:

tuple