regularizepsf.psf#
Classes#
Model for a simple PSF. |
|
Model for a PSF that varies over the field of view. |
Functions#
|
|
|
|
|
Module Contents#
- class regularizepsf.psf.PointSpreadFunctionABC#
- abstract __call__(x: numbers.Real | numpy.ndarary, y: numbers.Real | numpy.ndarray) numbers.Real | numpy.ndarray#
Evaluation of the point spread function.
- Parameters:
x (real number or np.ndarray) – first dimension coordinate to evaluate at
y (real number or np.ndarray) – second dimension coordinate to evaluate at
- Returns:
the value of the point spread function at (x,y)
- Return type:
real number or np.ndarray
- property parameters: list#
- Abstractmethod:
Varying parameters of the model.
- class regularizepsf.psf.SimplePSF(function: collections.abc.Callable)#
Bases:
PointSpreadFunctionABCModel for a simple PSF.
Creates a PSF object.
- Parameters:
function –
- Python function representing the PSF,
first two parameters must be x and y and must return an numpy array
- _f: collections.abc.Callable#
- _signature: inspect.Signature#
- _parameters: set[str]#
- __call__(x: numbers.Real | numpy.ndarray, y: numbers.Real | numpy.ndarray, **kwargs: dict[str, Any]) numbers.Real | numpy.ndarray#
Evaluation of the point spread function.
- Parameters:
x (real number or np.ndarray) – first dimension coordinate to evaluate at
y (real number or np.ndarray) – second dimension coordinate to evaluate at
- Returns:
the value of the point spread function at (x,y)
- Return type:
real number or np.ndarray
- property parameters: set[str]#
Varying parameters of the model.
- class regularizepsf.psf.VariedPSF(vary_function: collections.abc.Callable, base_psf: SimplePSF, validate_at_call: bool = True)#
Bases:
PointSpreadFunctionABCModel for a PSF that varies over the field of view.
- _vary_function#
- _base_psf#
- validate_at_call#
- parameterization_signature#
- _origin_parameters: set[str]#
- __call__(x: numbers.Real | numpy.ndarray, y: numbers.Real | numpy.ndarray) numbers.Real | numpy.ndarray#
Evaluation of the point spread function.
- Parameters:
x (real number or np.ndarray) – first dimension coordinate to evaluate at
y (real number or np.ndarray) – second dimension coordinate to evaluate at
- Returns:
the value of the point spread function at (x,y)
- Return type:
real number or np.ndarray
- property parameters: list#
Varying parameters of the model.