io.geometry_converter

pywicta.io.geometry_converter.get_geom1d(cam_id)[source]

Return the cam_id geometry for ctapipe.

Use camera.CameraGeometry.get_known_camera_names() to get the list of available cameras.

Parameters:cam_id (str) – The instrument name (required to guess the image geometry).
Returns:geom1d – The cam_id camera geometry for ctapipe 1D images.
Return type:CameraGeometry
pywicta.io.geometry_converter.image_2d_to_1d(image2d, cam_id)[source]

Convert a wavelet compatible 2D image to a ctapipe compliant 1D image.

Convert the 2D array image format used by the wavelet image cleaning to the 1D array image format used by ctapipe.

Parameters:
  • image2d (2D ndarray) – The 2D image to convert.
  • cam_id (str) – The instrument name (required to guess the image geometry).
Returns:

The converted image in its 1D version compliant with ctapipe.

Return type:

1D ndarray

pywicta.io.geometry_converter.image_1d_to_2d(image1d, cam_id)[source]

Convert a ctapipe compliant 1D image to a wavelet compatible 2D image.

Convert the 1D array image format used by ctapipe to the 2D array image format used by the wavelet image cleaning.

Parameters:
  • image1d (1D ndarray) – The 1D image to convert.
  • cam_id (str) – The instrument name (required to guess the image geometry).
Returns:

The converted image in its 2D version compliant with wavelet packages.

Return type:

2D ndarray