exosim.tasks.detector.loadPixelsNonLinearityMapNumpy#

Classes#

LoadPixelsNonLinearityMapNumpy

Loads the pixels non-linearity map given a numpy map.

Module Contents#

class LoadPixelsNonLinearityMapNumpy[source]#

Bases: exosim.tasks.detector.LoadPixelsNonLinearityMap

Loads the pixels non-linearity map given a numpy map. The input must be a NPY format file (see numpy documentation) containing the coefficients for each pixel. The map should have dimensions (n, y, x) where n is the number of coefficients for the polynomial approximation and y and x are the number of pixels in spatial and spectral directions. The map should be indicated under pnl_filename keyword.

Returns:

channel non linearity map

Return type:

dict

Raises:

KeyError: – if the output do not have the map key

model(parameters)[source]#
Parameters:

parameters (dict) – dictionary contained the channel parameters. This is usually parsed from LoadOptions

Returns:

channel pixel non-linearity map

Return type:

dict