CosineBellWindow#
- class photutils.psf.matching.CosineBellWindow(alpha)[source]#
Bases:
SplitCosineBellWindow
Class to define a 2D cosine bell window function.
- Parameters:
- alphafloat, optional
The percentage of array values that are tapered.
Examples
import matplotlib.pyplot as plt from photutils.psf.matching import CosineBellWindow taper = CosineBellWindow(alpha=0.3) data = taper((101, 101)) plt.imshow(data, cmap='viridis', origin='lower') plt.colorbar()
(
Source code
,png
,hires.png
,pdf
,svg
)A 1D cut across the image center:
import matplotlib.pyplot as plt from photutils.psf.matching import CosineBellWindow taper = CosineBellWindow(alpha=0.3) data = taper((101, 101)) plt.plot(data[50, :])
(
Source code
,png
,hires.png
,pdf
,svg
)Methods Summary
__call__
(shape)Call self as a function to return a 2D window function of the given shape.
Methods Documentation