pysted.utils.pxsize_comp_array_maker
- pysted.utils.pxsize_comp_array_maker(img_pixelsize, data_pixelsize, datamap)
Compare the pixel sizes of the image and the datamap and return the appropriate pixel sizes for the acquisition.
Function which utilizes the ratio between the image pixelsize and the datamap pixelsize to create an appropriatly sized output datamap for a normal raster scan acquisition with ratio jumps between laser applications. This assures that the laser application is placed in the appropriate acquisition output pixel.
- Parameters:
img_pixelsize – The image pixelsize (m)
data_pixelsize – The datamap pixelsize (m)
datamap – The datamap on which the acquisition is made
- Returns:
An empty datamap of shape (ceil(datamap.shape[0] / ratio), ceil(datamap.shape[1] / ratio))