Image

class showermodel.image.Image(signal, lat_profile=True, N_pix=None, int_time=None, NSB=40.0)

Bases: object

Generate 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, mandatory) – 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, default None) – Number of camera pixels. If not given, the value defined in the Telescope object is used.

  • int_time (float, default None) – Integration time in microseconds of a camera frame. If not given, the value defined in the Telescope object is used.

  • NSB (float, default 40) – Night sky background in MHz/m^2/deg^2 (photoelectrons).

signal
Type:

Signal

lat_profile

Bool indicating whether 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, default None) – Frame number. If None, the sum of frames is shown.

  • NSB (float, default None) – Night sky background in MHz/m^2/deg^2. By default, the one defined in Image is used.

  • ax (AxesSubplot, default None) – 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, default None) – Night sky background in MHz/m^2/deg^2. By defaut, the one defined in Image is used.

Returns:

ani

Return type:

HTML