def calc_noise_threshold(imax, noise_dr):
    """
    Calculates the noise threshold
    imax (float): the maximum in the input image
    noise_dr (float): the noise dynamic range to calculate the threshold for
    returns (float): the noise threshold
    """
    noise_threshold = imax / noise_dr
    return noise_threshold
