kkcalc2.asf_database.db_generator_script#

This module accumulates optical database data.

This file is not included in the distributed package, but is provided for reference.

Data is taken from different sources and packaged into ASF.json to be used by and distributed with the Kramers-Kronig Calculator software package.

Workflow to accomodate: 1. Read data from .nff files and BL files. 2. Combine Henke and BL data sets. 3. Convert to useful format for internal use. 4. Write to json file for distribution. 5. Load data for use by KKCalc. 6. Combine data for different elements as selected by user. 6.a) figure out energy values (abscissa). 6.b) add coefficients/intensity values in selected proportions 7. Provide combined data in required formats. 7.a) list of tuples for plotting. 7.b) list of energy ranges, each with corresponding list of polynomial coefficients, (i.e. piecewise polynomial format) for PP KK calculation.

Items 1-4 not usually performed by users. Items 5-7 must be integrated into KKCalc program.

Functions

BL_to_ASF(E, coeffs, Atomic_mass)

The conversion factor from Biggs and Lighthill coefficients to Henke scattering factors.

Coeffs_to_ASF(E, coeffs)

Calculate Henke scattering factors from polynomial coefficients.

LoadData(filename)

A loader for the Henke .nff ascii data files.

parse_BL_file(briggs_file)

Parse a Biggs and Lighthill (BL) file.