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)
Variable | Type | Description | |
---|---|---|---|
h | ndarray; 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. | |
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. | |
kwargs | dict | Optional arguments. Keywords are: nk, kv. | |
nk | int | Number of propagation vectors | |
kv | ndarray; dtype = float32; shape = (nk,3) | Propagation vectors. | |
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]: float, sin(theta) / lambda for reflection h. |
examples