matchFRB

zdm.optical.matchFRB(TNSname, survey)[source]

Find the index of an FRB in a survey by TNS name.

Uses simplify_name to normalise both the query name and the survey entries, so minor formatting differences (century digits, trailing letters) do not prevent a match.

Parameters:
  • TNSname (str) – TNS name of the FRB to look up, e.g. 'FRB20180924B'.

  • survey (Survey) – loaded survey object whose frbs["TNS"] column contains TNS names of detected FRBs.

Returns:

index into survey.frbs of the first matching FRB,

or None if the FRB is not found in the survey.

Return type:

int or None