obtain_time_image#

ctapipe.image.toymodel.obtain_time_image(x, y, centroid_x, centroid_y, psi, time_gradient, time_intercept)[source]#

Create a pulse time image for a toymodel shower. Assumes the time development occurs only along the longitudinal (major) axis of the shower, and scales linearly with distance along the axis.

Parameters:
xu.Quantity[length]

X camera coordinate to evaluate the time at. Usually the array of pixel X positions

yu.Quantity[length]

Y camera coordinate to evaluate the time at. Usually the array of pixel Y positions

centroid_xu.Quantity[length]

X camera coordinate for the centroid of the shower

centroid_yu.Quantity[length]

Y camera coordinate for the centroid of the shower

psiconvertible to astropy.coordinates.Angle

rotation angle about the centroid (0=x-axis)

time_gradientu.Quantity[time/angle]

Rate at which the time changes with distance along the shower axis

time_interceptu.Quantity[time]

Pulse time at the shower centroid

Returns:
float or ndarray

Pulse time in nanoseconds at (x, y)