def replace_corrected_orography_with_original_for_glaciated_grid_points(input_corrected_orography,
                                                                        input_original_orography,
                                                                        input_glacier_mask):
    """Replace a corrected orography with the original orography at points that are glaciated

    Arguments:
    input_corrected_orography: Field object; the corrected orography where correction are applied
        to both glaciated and unglaciated points
    input_original_orography: Field object; the original orography to use for glaciated points
    input_glacier_mask: Field object; a binary glacial mask where glacier is 1/True and non-glacier
        is 0/False
    Returns: An orography using the corrected orography for non-glaciated points and the original
        orography for glaciated points.
    """

    input_corrected_orography.mask_field_with_external_mask(input_glacier_mask.get_data())
    input_original_orography.update_field_with_partially_masked_data(input_corrected_orography)
    return input_original_orography