m3resp.PixelMap#
- class m3resp.PixelMap(name, values, modality='eit', category=None, unit=None, method=None, metadata=<factory>)[source]#
One number for each pixel of an EIT image.
- Variables:
name (str) – What the numbers are, e.g.
'pixel_tiv'.values (numpy.ndarray) – The numbers as a 2D grid of shape (row, column). They are stored as floats; NaN means the pixel has no value.
modality (str) – The device the values were measured with.
category (str | None) – The physical quantity the values are derived from (see
m3resp.data.categories).unit (str | None) – Unit of the values, normalized to a recognized spelling.
method (str | None) – Name of the method that produced the values.
- Raises:
ValueError – If
valuesis not a 2D grid.TypeError – If
valuescannot be stored as floats without changing them (text, for example).
- Parameters:
Methods
Return the grid and its descriptive fields as a dictionary.
Attributes
Return the number of rows and columns, in that order.