Routines for calculating standing wave x-ray fluorescence and x-ray reflectivity
Project description
pySWXF
Code for calculating reflectivity and standing wave x-ray reflectivity
refl_funs Routines to calculate specular reflectivity
* mlayer_rough: Calculates reflectivity from a multilayer substrate. Approximates roughness as gaussian
* mlayer_conv Convolutes mlayer_rough with a gaussian resolution function
* reflection_matrix returns reflection and transmission data from multilayer array. Uses mlayer_rough
* eden_to_rho converts between electron density and mass density
* rho_to_n converts between mass density and index of refraction
* rho_to_rhoe converts between mass density and electron density
spec_utils Routines to read data from spec files
* readscan read a data scan
* readmcascan read a data scan where mca data saved to spec file
* merge_scans combine spec scans from a sequence
* merge_duplicates take combined scans and average points at same location
* getscan uses readscan to specifically read theta two-theta data
* getscan_bg reads a scan and two backgrounds and returns background subtracted data
* list_scans lists scans in spec file
* dt_correct: corrects MCA dead time from CLS mca
* get_mca_data_CLS: reads MCA data from Canadian Light Source Brockhouse Beamline
* get_mca_data_DND: reads MCA data from DND cat
* plot_mca_sum: Sums all mca data from a scan and plots intensity vs energy
* peak_label: Plots a label for a peak on an MCA plot
* K_label: Labels all K-lines from an element
* L_label: Labels all L-lines from an element
* get_br_amps Fits bromine peak to gaussian and nearby gold peak. Returns only Br amplitude
* plot_br_fluor Fits all bromine amplitudes from scan and returns plot of intensity vs. angle
* get_edge_absorb Finds the absorbtion probability of an edge by brute force (e.g.
calculates values on either side of edge and subtracts
* Au_L_peak: Simulates intensity from Au L peaks. Input to get_br_amps
* Br_K_peak: Simulates intensity from Br K peak. Input to get_br_amps
* Br_peak_sim: Combines Br and Au peaks into total intensity. Input to get_br_amps
* cbwe: combine two sets of data with error bars
* cbwe_s: same as cbwe but for two scalers rather than two vector
* get_mca_data_CLS_Nov: reads mca data from file for format from November 2023
* get_fluor_data: reads mca data using get_mca_data_CLS_Nov and combines with related spec data
* fit_fluor_data: fits bromine peak amplitudes using model specified in peak_model
* get_reflectivity_CLS(fname, datadir, scan):
* get_refl_sequence_CLS(fname, datadir, firstscan):
* plot_refl_sequence_CLS(fname, datadir, firstscan):
fluor_fit Routines to fit fluorescence curves
* make_bilayer_model: models bilayer to go on top of multilayer
* sample_sim: takes parameters and makes a layer stack for sample
* multilayer_ref_Ti calculates reflectivity from old multilayer
* multilayer_fluor: calculates fluorescence from old multilayer
* sample_sim_new: creates sample stack for new multilayer
* multilayer_ref_new calculates reflectivity from new multilayer o
* multilayer_ref_new_model: fitting model for new multilayer
* multilayer_model_Ti: fitting model for old multilayer
Some of these are still a work in progress, proceed with caution
Please contact Larry Lurio llurio@niu.edu for more information
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyswxf-1.0.6.tar.gz
(1.1 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyswxf-1.0.6-py3-none-any.whl
(33.2 kB
view details)
File details
Details for the file pyswxf-1.0.6.tar.gz.
File metadata
- Download URL: pyswxf-1.0.6.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e63719dddd0c141bc7de5967ee1362b7ed6cc7bbc22024141af7ae7328cc2ed
|
|
| MD5 |
410cf2d83697ad72248e0969c499c10b
|
|
| BLAKE2b-256 |
8e958d4294da50aa30cf689d452df707af5bb416af15de5aaa421d6e070196d2
|
File details
Details for the file pyswxf-1.0.6-py3-none-any.whl.
File metadata
- Download URL: pyswxf-1.0.6-py3-none-any.whl
- Upload date:
- Size: 33.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dd30692b7cb3783bb5c1c7339fdae2b4fd68de80d30c8069b65a0b6ab49bd31
|
|
| MD5 |
ba4382cab48086f0cb54856d6d480823
|
|
| BLAKE2b-256 |
eee10f025731ed8a083cfe6a94a730e56be9b43f192a2c9836a041410c03650d
|