frb.scripts.random_assoc

frb.scripts.random_assoc.get_catalog(coords, size=<Quantity 1. deg>)[source]

Download a catalog objects within a square of input size centered around coords.

Args:
  • coords (astropy SkyCoord) – central coordinates

  • size (astropy Angle, optional) – Size of the square FoV around the central coordinates

Returns:

DES DR1 search results

Return type:

catalog (astropy Table)

frb.scripts.random_assoc.get_frac_within_sep(coords, catalog, sep=<Quantity 1. arcsec>, resolution=1000, size=<Quantity 1. deg>, band='r', crit_mag=22)[source]

Obtain the fraction of sightlines on the unifrom grid defined in _generate_coord_grid falling within sep distance of a galaxy in catalog with mag less than crit_mag in band. The catalog and grid are defined in a square centered around coords of side length size and grid has input linear resolution.

frb.scripts.random_assoc.random_sightlines(n=100, resolution=3600, sep=<Quantity 1. arcsec>, size=<Quantity 1. deg>, band='r', crit_mag=22, outfile='random_sights.txt')[source]

Query a contigous quare patch of DES n times to obtain output from get_frac_within_sep and store it to outfile.

frb.scripts.random_assoc.plot_hist(fracs, bins=5)[source]

Plot a histogram of fractions obtained from random_sightlines