Apertures

All apertures will rely on a position and the shape parameters.

aperture = Aperture(x0, y0, shape_params...)

The position can be pixels or sky coordinates. The sky coordinate positions utilize SkyCoords.jl and WCS.jl for conversion.

Note

The pixel positions for these apertures follow traditional image position with 1-based indexing. This means the origin is at top-left and has index (0.5, 0.5) at the top-left corner and (1, 1) at the center.

Circular Apertures

These apertures are parametrized by radius.

Photometry.Aperture.CircularAnnulusType
CircularAnnulus(x, y, r_in, r_out)
CircularAnnulus([x, y], r_in, r_out)

A circular aperture.

Examples

julia> ap = CircularAnnulus(0, 0, 5, 10)
CircularAnnulus(0, 0, r_in=5, r_out=10)
source

Elliptical Apertures

These apertures are parametrized by the semi-major axis a and semi-minor axis b.

Rectangular Apertures

These apertures are parametrized by side-length a and side-length b.

API/Reference

Photometry.Aperture.cutoutFunction
cutout(::AbstractAperture, data)

Get the cutout of the aperture from the data. This will handle partial overlap by padding the data with zeros.

source