Scene Class
Class for working with scenes of many PSFs
Parameters:
Name | Type | Description | Default |
---|---|---|---|
locations
|
Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]
|
Set of locations in row and column for every source. |
required |
psf
|
PSF
|
A PSF object to use within the scene. |
None
|
scale
|
int
|
How much to scale the PSF grid. Scale of 2 makes the PSF 2x broader. Default is 1. |
1
|
fit_images(imgs, prior_mu=None, prior_sigma=None, fit_shifts=False)
Fit a stack of images with the PRF model
model(flux, delta_pos=None, quiet=False, downsample=False)
Parameters:
flux : npt.ArrayLike Array of flux values with shape (ntargets, ntimes) delta_pos : npt.ArrayLike Array of jitter values in row and column, has shape (2, ntimes)
ROIScene Class
Bases: pandorapsf.scene.Scene
fit_images(imgs, prior_mu=None, prior_sigma=None, fit_shifts=False)
Fit a stack of images with the PRF model
model(flux, delta_pos=None, quiet=False, downsample=False)
Parameters:
flux : npt.ArrayLike Array of flux values with shape (ntargets, ntimes) delta_pos : npt.ArrayLike Array of jitter values in row and column, has shape (2, ntimes)