Package reflectometry :: Package reduction :: Module corrections

Source Code for Module reflectometry.reduction.corrections

 1  # This program is public domain 
 2  """ 
 3  Data corrections for reflectometry. 
 4   
 5   
 6  """ 
 7   
 8  # TODO Autogenerate these entries from the corrections themselves. 
 9  # TODO This serves to improve maintainability by only listing the 
10  # TODO objects in one place, and improve documentation by copying 
11  # TODO the complete description of constructor arguments and function 
12  # TODO description. 
13   
14  # TODO find a better way to delay loading of symbols 
15   
16 -def normalize(*args, **kw):
17 """Normalization correction; should be applied first""" 18 from reflectometry.reduction.normcor import Normalize 19 return Normalize(*args, **kw)
20
21 -def polarization_efficiency(*args, **kw):
22 """Polarization efficiency correction""" 23 from reflectometry.reduction.polcor import PolarizationEfficiency 24 return PolarizationEfficiency(*args, **kw)
25
26 -def smooth(*args, **kw):
27 """Data smoothing using 1-D moving window least squares filter""" 28 from reflectometry.reduction.smoothcor import Smooth 29 return Smooth(*args, **kw)
30
31 -def water_intensity(*args, **kw):
32 """Intensity estimate from water scatter""" 33 from reflectometry.reduction.ratiocor import WaterIntensity 34 return WaterIntensity(*args, **kw)
35
36 -def ratio_intensity(*args, **kw):
37 """Intensity estimate from reflection off a standard sample""" 38 from reflectometry.reduction.ratiocor import RatioIntensity 39 return RatioIntensity(*args, **kw)
40
41 -def measured_area_correction(*args, **kw):
42 """Detector area correction from file""" 43 from reflectometry.reduction.areacor import measured_area_correction 44 return measured_area_correction(*args,**kw)
45
46 -def area_correction(*args, **kw):
47 """Detector area correction from file""" 48 from reflectometry.reduction.areacor import AreaCorrection 49 return AreaCorrection(*args,**kw)
50