pyUSID.io.hdf_utils.model.map_grid_to_cartesian

pyUSID.io.hdf_utils.model.map_grid_to_cartesian(h5_main, grid_shape, mode='histogram', **kwargs)[source]

Map an incomplete measurement, such as a spiral scan, to a cartesian grid. :param h5_main: Dataset containing the sparse measurement :type h5_main: pyUSID.USIDataset :param grid_shape: Shape of the output numpy.ndarray. :type grid_shape: int or [int, int] :param mode: Method used for building a cartesian grid.

Available methods = ‘histogram’, ‘linear’, ‘nearest’, ‘cubic’ Use kwargs to pass onto each of the techniques

Note

UNDER DEVELOPMENT! Currently only valid for 2 position dimensions

@author: Patrik Marschalik

Return type:

numpy.ndarray but could be a h5py.Dataset or dask.array.core.Array object