ptypy.utils.scripts.cxro_iref#

ptypy.utils.scripts.cxro_iref(formula, energy, density=-1, npts=100)#

Query CXRO database for index of refraction values for a solid.

Parameters:
  • formula (str) – String representation of the Formula to use.

  • energy (float or (float, float)) – Either a single energy (in eV) or the minimum/maximum bounds.

  • density (None or float, optional) – Density of the material [g/ccm]. If None or <0 the regular density at ambient temperatures is used.

  • npts (int, optional) – Number of points between the min and max energies.

Returns:

energy, delta, beta – Energy used and the respective delta and beta values.

Return type:

scalar or vector