shareloc.geofunctions.rectification_grid

This module contains the rectification_grids class to handle CARS rectification grids.

Classes

RectificationGrid

Rectification grid

Module Contents

class shareloc.geofunctions.rectification_grid.RectificationGrid(grid_filename, is_displacement_grid=False, interpolator='linear')[source]

Rectification grid

Parameters:
  • grid_filename (str)

  • is_displacement_grid (bool)

  • interpolator (str)

grid_filename[source]
points[source]
interpolator[source]
get_positions()[source]

return grid positions

:return grid positions :rtype numpy array, numpy array

interpolate(positions)[source]

interpolate position

:param positions : positions to interpolate : array Nx2 [col,row] :type positions: np.array :return interpolated positions : array Nx2 [col,row] :rtype np.array