photutils/aperture/mask_data.py
def _get_fractional_overlap_mask(indiv_absolute_extent, indiv_centered_extent,
                                 overlap, radius, use_exact, subpixels):
    """
    Given a set of coordinates, calculate the masked array for the
    cutout. Returns an empty array if there is no overlap between the
    data and the aperture.
    """

    from ..geometry import circular_overlap_grid

    x_min, x_max, y_min, y_max = indiv_absolute_extent
    x_pmin, x_pmax, y_pmin, y_pmax = indiv_centered_extent

    if overlap:
        return circular_overlap_grid(x_pmin, x_pmax, y_pmin, y_pmax,
                                     x_max - x_min, y_max - y_min,
                                     radius, use_exact, subpixels)
    else:
        # Should this raise a warning or have we already done this once
        # and that is enough?
        return np.array([])

    Given a set of coordinates, calculate the masked array for the
    cutout. Returns an empty array if there is no overlap between the
    data and the aperture.
    
Given a set of coordinates, calculate the masked array for the
cutout. Returns an empty array if there is no overlap between the
data and the aperture.
Given a set of coordinates calculate the masked array for the cutout . Returns an empty array if there is no overlap between the data and the aperture .
def _get_fractional_overlap_mask(indiv_absolute_extent, indiv_centered_extent,
                                 overlap, radius, use_exact, subpixels):
    from ..geometry import circular_overlap_grid
    x_min, x_max, y_min, y_max = indiv_absolute_extent
    x_pmin, x_pmax, y_pmin, y_pmax = indiv_centered_extent
    if overlap:
        return circular_overlap_grid(x_pmin, x_pmax, y_pmin, y_pmax,
                                     x_max - x_min, y_max - y_min,
                                     radius, use_exact, subpixels)
    else:
        return np.array([])
def _get_fractional_overlap_mask ( indiv_absolute_extent , indiv_centered_extent , overlap , radius , use_exact , subpixels ) : from . . geometry import circular_overlap_grid x_min , x_max , y_min , y_max = indiv_absolute_extent x_pmin , x_pmax , y_pmin , y_pmax = indiv_centered_extent if overlap : return circular_overlap_grid ( x_pmin , x_pmax , y_pmin , y_pmax , x_max - x_min , y_max - y_min , radius , use_exact , subpixels ) else : return np . array ( [ ] )
Given a set of coordinates, calculate the masked array for the
cutout.
Given a set of coordinates calculate the masked array for the cutout .
"""
    Given a set of coordinates, calculate the masked array for the
    cutout. Returns an empty array if there is no overlap between the
    data and the aperture.
    """ # Should this raise a warning or have we already done this once # and that is enough?
indiv_absolute_extent
indiv_centered_extent
overlap
radius
use_exact
subpixels