hkl
¶
Macro library containning diffractometer related macros for the macros server Tango device server as part of the Sardana project.
-
class
br
(*args, **kwargs)[source]¶ Move the diffractometer to the reciprocal space coordinates given by H, K and L. If a fourth parameter is given, the combination of angles to be set is the correspondig to the given index. The index of the angles combinations are then changed.
-
class
ubr
(*args, **kwargs)[source]¶ Move the diffractometer to the reciprocal space coordinates given by H, K and L und update.
-
class
ca
(*args, **kwargs)[source]¶ Calculate motor positions for given H K L according to the current operation mode (trajectory 0).
-
class
caa
(*args, **kwargs)[source]¶ Calculate motor positions for given H K L according to the current operation mode (all trajectories)
-
class
ci
(*args, **kwargs)[source]¶ Calculate hkl for given angle values
-
class
pa
(*args, **kwargs)[source]¶ Prints information about the active diffractometer.
-
class
wh
(*args, **kwargs)[source]¶ Show principal axes and reciprocal space positions.
Prints the current reciprocal space coordinates (H K L) and the user positions of the principal motors. Depending on the diffractometer geometry, other parameters such as the angles of incidence and reflection (ALPHA and BETA) and the incident wavelength (LAMBDA) may be displayed.
-
class
freeze
(*args, **kwargs)[source]¶ Set psi value for psi constant modes
-
class
setmode
(*args, **kwargs)[source]¶ Set operation mode.
-
class
getmode
(*args, **kwargs)[source]¶ Get operation mode.
-
class
setlat
(*args, **kwargs)[source]¶ Set the crystal lattice parameters a, b, c, alpha, beta and gamma for the currently active diffraction pseudo motor controller.
-
class
or0
(*args, **kwargs)[source]¶ Set primary orientation reflection.
-
class
or1
(*args, **kwargs)[source]¶ Set secondary orientation reflection.
-
class
setor0
(*args, **kwargs)[source]¶ Set primary orientation reflection choosing hkl and angle values
-
class
setor1
(*args, **kwargs)[source]¶ Set secondary orientation reflection choosing hkl and angle values
-
class
setorn
(*args, **kwargs)[source]¶ Set orientation reflection indicated by the index.
-
class
setaz
(*args, **kwargs)[source]¶ Set hkl values of the psi reference vector
-
class
computeub
(*args, **kwargs)[source]¶ Compute UB matrix with reflections 0 and 1
-
class
addreflection
(*args, **kwargs)[source]¶ Add reflection at the botton of reflections list
-
class
affine
(*args, **kwargs)[source]¶ Affine current crystal. Fine tunning of lattice parameters and UB matrix based on current crystal reflections. Reflections with affinement set to 0 are not used. A new crystal with the post fix (affine) is created and set as current crystal
-
class
orswap
(*args, **kwargs)[source]¶ Swap values for primary and secondary vectors.
-
class
newcrystal
(*args, **kwargs)[source]¶ Create a new crystal (if it does not exist) and select it.
-
class
th2th
(*args, **kwargs)[source]¶ th2th - scan:
Relative scan around current position in del and th with d_th=2*d_delta
-
class
savecrystal
(*args, **kwargs)[source]¶ Save crystal information to file
-
class
loadcrystal
(*args, **kwargs)[source]¶ Load crystal information from file