def get_snr(catalog):
    """
    This utility computes the S/N for each object in the catalog.
    It does not impose any cuts and returns NaNs for invalid S/N values.
    """

    snr = catalog['iflux_cmodel'] / catalog['iflux_cmodel_err']
    return snr