TableInterpolator

class ctapipe.utils.TableInterpolator(filename, verbose=1)[source]

Bases: object

This is a simple class for loading lookup tables from a fits file and interpolating between them

Methods Summary

interpolate(params, pixel_pos_x, pixel_pos_y)

Parameters

interpolated_image(params)

Function for creating a ful interpolated image template from the interpolation library

parse_fits_table(filename)

Function opens tables contained within fits files and parses them into a format recognisable by the interpolator.

Methods Documentation

interpolate(params, pixel_pos_x, pixel_pos_y)[source]
Parameters
params: ndarray

numpy array of interpolation parameters currently [energy, impact distance, xmax]

pixel_pos_x: ndarray

pixel position in degrees

pixel_pos_y: ndarray

pixel position in degrees

Returns
ndarray of expected intensity for all pixel positions given
interpolated_image(params)[source]

Function for creating a ful interpolated image template from the interpolation library

Parameters
params: ndarray

numpy array of interpolation parameters currently [energy, impact distance, xmax]

Returns
ndarray of a single image template
parse_fits_table(filename)[source]

Function opens tables contained within fits files and parses them into a format recognisable by the interpolator.

Parameters
filename: str

Name of table file

Returns
tuple (grid points, bin centres, images)