plot_frb
- zdm.optical.plot_frb(name, ralist, declist, plist, opfile)[source]
Plot an FRB localisation and its PATH host galaxy candidates.
Produces a scatter plot showing the FRB position and a set of deviated/sampled positions colour-coded by their PATH posterior P(O|x), overlaid with circles representing candidate host galaxies scaled by their angular size. All coordinates are shown in arcseconds relative to the FRB position.
- Parameters:
name (str) – TNS FRB name (e.g.
'FRB20180924B'), used to load the FRB object and the corresponding PATH candidate table.ralist (np.ndarray) – right ascension values (degrees) of deviated FRB positions to plot, colour-coded by
plist.declist (np.ndarray) – declination values (degrees) of deviated FRB positions.
plist (np.ndarray) – PATH posterior values P(O|x) for the deviated positions, used to set the colour scale.
opfile (str) – output file path for the saved figure.