refllib - Low level reflectivity calculations
Reflectometry numba library
-
refl1d.refllib.align_magnetic(d, sigma, rho, irho, dM, sigmaM, rhoM, thetaM, output_flat)[source]
-
refl1d.refllib.calculate_u1_u3(H, rhoM, thetaM, Aguide, u1, u3)[source]
array version - rhoM, thetaM, u1 and u3 are arrays
rhoM, u1 and u3 are modified in-place
-
refl1d.refllib.contract_by_area(d, sigma, rho, irho, dA)[source]
-
refl1d.refllib.contract_mag(d, sigma, rho, irho, rhoM, thetaM, dA)[source]
-
refl1d.refllib.convolve_gaussian(xin, yin, x, dx, y)[source]
-
refl1d.refllib.convolve_sampled(xin, yin, xp, yp, x, dx, y)[source]
-
refl1d.refllib.convolve_uniform(xi, yi, x, dx, y)[source]
-
refl1d.refllib.magnetic_amplitude(d, sigma, rho, irho, rhoM, u1, u3, KZ, R)[source]
python version of calculation
implicit returns: Ra, Rb, Rc, Rd
-
refl1d.refllib.rebin_counts(xold, Iold, xnew, Inew)[source]
-
refl1d.refllib.rebin_counts_2D(xold, yold, Iold, xnew, ynew, Inew)[source]
-
refl1d.refllib.reflectivity_amplitude(depth, sigma, rho, irho, kz, rho_index, r)[source]