Image
- class showermodel.image.Image(signal, lat_profile=True, N_pix=None, int_time=None, NSB=40.0)
Bases:
objectGenerate a time-varying shower image from a Signal object.
The object contains a time-varying shower image in a circular camera with square pixels of same solid angle. A Nishimura-Kamata-Greisen lateral profile is used to spread the signal contribution from each shower point to several pixels.
- Parameters
signal (Signal) – Signal object to be used.
lat_profile (bool, default True) – Use a NKG lateral profile to spread the signal. If False, a linear shower is assumed.
N_pix (int) – Number of camera pixels. If not given, the predefined value in the Telescope object is used.
int_time (float) – Integration time in microseconds of a camera frame. If not given, the predefined value in the Telescope object is used.
NSB (float) – Night sky background in MHz/m^2/deg^2.
- lat_profile
Bool indicating wether a NKG lateral profile is used to spread the signal. If False, a linear shower is assumed.
- Type
bool
- N_pix
Number of camera pixels.
- Type
int
- N_pix_r
Number of pixels across a camera radius.
- Type
int
- sol_angle_pix
Solid angle in stereoradians of a single pixel.
- Type
float
- int_time
Integration time in microseconds of a camera frame.
- Type
float
- N_frames
Number of frames.
- Type
int
- frames
Array of size (N_frames, 2*N_pix_r+1, 2*N_pix_r+1) containing the pixel values at each frame. Array elements not corresponding to any camera pixel are set to -inf.
- Type
array
- NSB
Night sky background in MHz/m^2/deg^2.
- Type
float
- NSB_pix
Mean number of background photoelectrons per pixel and frame.
- Type
float
- show()
Show a camera frame or the sum of all them including background.
- animate()
Show an animation of camera frames.
- Methods:
- Image.show(frame=None, NSB=None, ax=None)
Show a camera frame or the sum of all them including random background.
- Parameters
frame (int) – Frame number. If not given, the sum of frames is shown.
NSB (float) – Night sky background in MHz/m^2/deg^2. If not given, the one defined in Image is used.
ax (AxesSubplot object) – Axes instance where the plot is generated. In not given, a new AxesSubplot object is created.
- Returns
axes
- Return type
AxesSubplot
- Image.animate(NSB=None)
Show an interactive animation of camera frames.
- Parameters
NSB (float) – Night sky background in MHz/m^2/deg^2. If not given, the one defined in Image is used.
- Returns
ani
- Return type
HTML