This file is indexed.

/usr/lib/python3/dist-packages/reproject/spherical_intersect/overlap.py is in python3-reproject 0.3.1-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from __future__ import (absolute_import, division, print_function,
                        unicode_literals)
import numpy as np
from ._overlap import _compute_overlap

__all__ = ['compute_overlap']


def compute_overlap(ilon, ilat, olon, olat):
    """Compute the overlap between two 'pixels' in spherical coordinates.

    Parameters
    ----------
    ilon : np.ndarray with shape (N, 4)
        The longitudes (in radians) defining the four corners of the input pixel
    ilat : np.ndarray with shape (N, 4)
        The latitudes (in radians) defining the four corners of the input pixel
    olon : np.ndarray with shape (N, 4)
        The longitudes (in radians) defining the four corners of the output pixel
    olat : np.ndarray with shape (N, 4)
        The latitudes (in radians) defining the four corners of the output pixel

    Returns
    -------
    overlap : np.ndarray of length N
        Pixel overlap solid angle in steradians
    area_ratio : np.ndarray of length N
        TODO
    """
    ilon = np.asarray(ilon, dtype=np.float64)
    ilat = np.asarray(ilat, dtype=np.float64)
    olon = np.asarray(olon, dtype=np.float64)
    olat = np.asarray(olat, dtype=np.float64)

    return _compute_overlap(ilon, ilat, olon, olat)