25. 2-D resolution functions¶
sasmodels.resolution2d
¶
#This software was developed by the University of Tennessee as part of the #Distributed Data Analysis of Neutron Scattering Experiments (DANSE) #project funded by the US National Science Foundation. #See the license text in license.txt
-
class
sasmodels.resolution2d.
Pinhole2D
(data=None, index=None, nsigma=3.0, accuracy='Low', coords='polar')¶ Bases:
sasmodels.resolution.Resolution
Gaussian Q smearing class for SAS 2d data
Assumption: equally spaced bins in dq_r, dq_phi space.
Parameters: - data – 2d data used to set the smearing parameters
- index – 1d array with len(data) to define the range of the calculation: elements are given as True or False
- nr – number of bins in dq_r-axis
- nphi – number of bins in dq_phi-axis
- coord – coordinates [string], ‘polar’ or ‘cartesian’
-
apply
(theory)¶ Smear theory by the resolution function, returning Iq.
-
q
= None¶
-
q_calc
= None¶
-
class
sasmodels.resolution2d.
Slit2D
(q, qx_width, qy_width=0.0, q_calc=None, accuracy='low')¶ Bases:
sasmodels.resolution.Resolution
Slit aperture with resolution function on an oriented sample.
q points at which the data is measured.
qx_width slit width in qx
qy_width slit height in qy; current implementation requires a fixed qy_width for all q points.
q_calc is the list of q points to calculate, or None if this should be estimated from the q and qx_width.
accuracy determines the number of qy points to compute for each q. The values are stored in sasmodels.resolution2d.N_SLIT_PERP. The default values are: low=101, med=401, high=1001, xhigh=2001
-
apply
(theory)¶ Smear theory by the resolution function, returning Iq.
-
q
= None¶
-
q_calc
= None¶
-