def find_DETECTOR(output_hdul):
    """
    This function determines which detector was used
    Args:
        output_hdul: the HDU list of the output header keywords

    Returns:
        det: string, either NRS1 or NRS2
    """
    if "DETECTOR" in output_hdul:
        det = output_hdul["DETECTOR"]
        return det