Galaxy Offsets

Methods related to offsets

frb.galaxies.offsets.angular_offset(frb, galaxy, nsigma=5.0, nsamp=2000, gal_sig=None)[source]

Warning: All calculations in arcsec – Do not use for large localization error

Args:
  • frb (frb.frb.FRB)

  • galaxy (frb.galaxies.FRBGalaxy)

  • nisgma – Number of sigma around the FRB uncertainty ellipse from which the grid is build

  • nsamp – Grid sample points for each 1D Gaussian (one in RA and Dec)

  • gal_sig (tuple) – RA, DEC errors in arcsec as floats

Returns:

float, float, float, float

avg_off, sig_off, best_off, sig_best

Return type:

tuple

frb.galaxies.offsets.incorporate_hst(hst_astrom: DataFrame, host)[source]

Updates coordinates and offsets for galaxies observed with HST

Offsets ang_avg, ang_best are updated in place

Currently for Mannings+2021 only

Args:
  • hst_astrom (pandas.DataFrame) – [description]

  • host (frb.galaxies.frbgalaxy.FRBHost) – [description]