refactor to split out a handful of individual functions and apply a more
appropriate optical depth correction to the reference raw source counts