Package reflectometry :: Package reduction :: Module areacor :: Class AreaCorrection

Class AreaCorrection

source code


Convert detector counts from counts per pixel to counts per unit area.
Instance Methods
 
__init__(self, wx, wy, rebin=False, source="unknown")
Create a pixel area correction function.
source code
 
apply(self, data)
Apply the area correction to the data
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Variables
  properties = ["wx", "wy", "source", "rebin"]
Properties

Inherited from object: __class__

Method Details

__init__(self, wx, wy, rebin=False, source="unknown")
(Constructor)

source code 

Create a pixel area correction function.

wx,wy is the solid angle of the pixels as measured on the detector. This function will normalize the counts on the detector by pixel area. This will change the pixel widths in the data file.

If rebin is True then adjust pixel boundaries so the pixels have equal area.

Source is a string to report in the log as the origin of the correction data.

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)