print

Function: h_s

Reference

Home

List of PyCrysFML08 Dictionaries

List of PyCrysFML08 Functions

USE

h_s computes sin(theta) / lambda for a given reflection.

function call

r = h_s(h: ndarray,cell : dict, kwargs : dict)

VariableTypeDescription
hndarray; dtype = float32; shape = 3 or ndarray; dtype = int32; shape = :Reflection index. Shape = 3 for real index, 3+ n for integer index. The integer form must be used with optional arguments.
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.
kwargsdictOptional arguments. Keywords are: nk, kv.
 nkintNumber of propagation vectors
 kvndarray; dtype = float32; shape = (nk,3)Propagation vectors.
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]: float, sin(theta) / lambda for reflection h.

examples