ctapipe.image.toymodel Module
Utilities to generate toymodel (fake) reconstruction inputs for testing
purposes.
Examples:
>>> from ctapipe.instrument import CameraGeometry
>>> geom = CameraGeometry.make_rectangular(20, 20)
>>> showermodel = Gaussian(
... x=0.25 * u.m, y=0.0 * u.m,
... length=0.1 * u.m, width=0.02 * u.m,
... psi='40d'
... )
>>> image, signal, noise = showermodel.generate_image(geom, intensity=1000)
>>> print(image.shape)
(400,)
Functions
obtain_time_image (x, y, centroid_x, …)
|
Create a pulse time image for a toymodel shower. |
Classes
WaveformModel (reference_pulse, …)
|
|
Gaussian (x, y, length, width, psi)
|
|
SkewedGaussian (x, y, length, width, psi, …)
|
A shower image that has a skewness along the major axis. |
ImageModel ()
|
|
Class Inheritance Diagram
digraph inheritance068f8b945e {
bgcolor=transparent;
rankdir=LR;
size="8.0, 12.0";
"Gaussian" [URL="../../api/ctapipe.image.toymodel.Gaussian.html#ctapipe.image.toymodel.Gaussian",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"ImageModel" -> "Gaussian" [arrowsize=0.5,style="setlinewidth(0.5)"];
"ImageModel" [URL="../../api/ctapipe.image.toymodel.ImageModel.html#ctapipe.image.toymodel.ImageModel",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
"SkewedGaussian" [URL="../../api/ctapipe.image.toymodel.SkewedGaussian.html#ctapipe.image.toymodel.SkewedGaussian",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A shower image that has a skewness along the major axis."];
"ImageModel" -> "SkewedGaussian" [arrowsize=0.5,style="setlinewidth(0.5)"];
"WaveformModel" [URL="../../api/ctapipe.image.toymodel.WaveformModel.html#ctapipe.image.toymodel.WaveformModel",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"];
}