<commit_before>from ._overlap_wrapper import _computeOverlap

__all__ = ['compute_overlap']


def compute_overlap(ilon, ilat, olon, olat):
    """
    Compute the overlap between two 'pixels' in spherical coordinates
    
    Parameters
    ----------
    ilon : np.ndarray
        The longitudes defining the four corners of the input pixel
    ilat : np.ndarray
        The latitudes defining the four corners of the input pixel
    olon : np.ndarray
        The longitudes defining the four corners of the output pixel
    olat : np.ndarray
        The latitudes defining the four corners of the output pixel
    """
    return _computeOverlap(ilon, ilat, olon, olat, 0, 1.)<commit_msg>Improve compute_overlap docstring<commit_after>from ._overlap_wrapper import _computeOverlap

__all__ = ['compute_overlap']


def compute_overlap(ilon, ilat, olon, olat):
    """Compute the overlap between two 'pixels' in spherical coordinates.
    
    Parameters
    ----------
    ilon : np.ndarray
        The longitudes (in deg) defining the four corners of the input pixel
    ilat : np.ndarray
        The latitudes (in deg) defining the four corners of the input pixel
    olon : np.ndarray
        The longitudes (in deg) defining the four corners of the output pixel
    olat : np.ndarray
        The latitudes (in deg) defining the four corners of the output pixel
    
    Returns
    -------
    overlap : np.ndarray
        Pixel overlap solid angle in steradians
    area_ratio : np.ndarray
        TODO
    """
    return _computeOverlap(ilon, ilat, olon, olat, 0, 1.)
{'fraction_non_alphanumeric': 0.07501589319771138, 'fraction_numerical': 0.0025429116338207248, 'mean_word_length': 2.6948356807511735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7017663', 'n_tokens_mistral': 453, 'n_tokens_neox': 443, 'n_words': 173}