Function: hkl_gen_sxtal
Reference
Home
List of PyCrysFML08 Dictionaries
List of PyCrysFML08 Functions
USE
hkl_gen_sxtal computes all allowed reflections between two values of sin(theta) / lambda, given a space group and a unit cell.
function call
r = hkl_gen_sxtal(cell : dict, spg : dict, stlmin : float, stlmax : float, kwargs : dict)
Variable | Type | Description | |
---|---|---|---|
cell | dict | Unit cell. It must be a dictionary of type cell_g_type or cell_gls_type. It can be generated with the function set_crystal_cell. | |
spg | dict | The space group. It must be a dictionary of type spg_type. It can be generated with the function set_spacegroup. | |
stlmin | float | Lower limit of sin(theta) / lambda. | |
stlmax | float | Upper limit of sin(theta) / lambda. | |
kwargs | dict | Optional arguments. Available keys: ord, hlim. | |
ord | ndarray; dtype=int32; shape=3 | Order of the list. Default: [3,2,1], which means vary first l, then k, finally h. | |
hlim | ndarray; dtype=int32; shape=(3,2) | Lower / upper limits for h,k,l. | |
r | tuple | The tuple returned by the function. r[0] : int, error code. If non-zero, an error has occurred. r[1] : str, error message. r[2]: dict, the list of reflections, a dictionary of type refl_list_type. |
examples