lon_lat_circle_mask¶
-
gammapy.image.lon_lat_circle_mask(lons, lats, center_lon, center_lat, radius)[source]¶ Produces a circular boolean mask array.
Parameters: lons :
LongitudeArray of longitude values.
lats :
LatitudeArray of latitude values.
center_lon :
LongitudeLongitude of center of circular mask.
center_lat :
LatitudeLatitude of center of circular mask.
radius :
AngleRadius of circular mask.
Returns: mask :
ndarrayBoolean mask array for a circular sub-region