print

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)

VariableTypeDescription
celldictUnit 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.
spgdictThe space group. It must be a dictionary of type spg_type. It can be generated with the function set_spacegroup.
stlminfloatLower limit of sin(theta) / lambda.
stlmaxfloatUpper limit of sin(theta) / lambda.
kwargsdictOptional arguments. Available keys: ord, hlim.
 ordndarray; dtype=int32; shape=3Order of the list. Default: [3,2,1], which means vary first l, then k, finally h.
 hlimndarray; dtype=int32; shape=(3,2)Lower / upper limits for h,k,l.
rtuple

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