pysted.utils.pixel_sampling

pysted.utils.pixel_sampling(datamap, mode='all')

Function to test different pixel sampling methods, instead of simply imaging pixel by pixel

Parameters:
  • datamap – A 2D array of the data to be imaged, used for its shape.

  • mode – A keyword to determine the order of pixels in the returned list. By default, all pixels are added in a raster scan (left to right, row by row) order.

Returns:

A list containing all the pixels in the order in which we want them to be imaged.