slicersim.profiles

slicersim.profiles#

2D PSF profiles (Airy disk, Gaussian) and pixel grids to sample them.

Coordinates and sizes are given in “shape units”, i.e. in units of the (non-oversampled) pixels of the image the profiles are evaluated on, with (0, 0) at the image center.

Functions

airyradius_to_gaussiansigma

Convert an Airy disk radius into an equivalent Gaussian sigma.

build_pixels

Build a pixel coordinate system with optional oversampling.

gaussiansigma_to_airyradius

Convert a Gaussian sigma into an equivalent Airy disk radius.

get_gaussian1d

Evaluate a normalized 1D Gaussian at given points.

get_gaussian2d

Compute an exact pixel-integrated 2D Gaussian PSF.

get_profilemodel

Get a 2D profile model from astropy.modeling.functional_models.

get_profilepsf

Compute the oversampled 2D PSF image for a given profile.

psfimage_to_encircledenergy

Calculate the encircled energy within given radii.