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.