Skip to main content
U.S. flag

An official website of the United States government

Here’s how you know

Official government website icon

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

icon-https

Secure .gov websites use HTTPS
A lock ( Lock Locked padlock icon )or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

NIH: National Institute of Diabetes and Digestive and Kidney Diseases NIH: National Institute of Diabetes and Digestive and Kidney Diseases

  next up previous contents index  Xplor-NIH home Documentation

Next: Requirements Up: Manipulating Reflection Data Previous: Manipulating Reflection Data

Syntax

DO $<$xrefin-do-statement$>$
is invoked as an xrefin statement. Action takes place as soon as the construct is complete.
$<$xrefin-do-statement$>$:==
$<$xrefin-do-mode$>$ ( $<$xrefin-property$>$ = $<$xrefin-do-expression$>$ )
$<$xrefin-do-mode$>$:==
AMPLitude
carries out an operation using amplitudes of xrefin properties.
COMPlex
carries out an operation in complex space.
PHASe
carries out an operation using phases of xrefin properties. Phases are manipulated in degrees.
SCALe
involves an operation that multiplies the left-hand side (lhs) by a scale factor $k$, which is defined as
\begin{displaymath}
k=\sum_{\vec h}W_{\vec h}\vert{\rm rhs}({\vec h})\vert\vert...
...})\vert /
(\sum_{\vec h} W_{\vec h} {\rm lhs} ({\vec h})^2)
\end{displaymath} (13.12)

where rhs represents the right-hand side of the equation. The action of this statement is identical to the scaling carried out when computing the $R$ value or the residual (cf. Eqs. 13.1, 13.6), except that it refers the scaling to the right-hand side of the equation, whereas in the residual or $R$ value evaluation the scaling refers to $F_c=F_{calc}+F_{part}$. Therefore, if the right-hand side of the scaling operation consists of $F_{calc}$, the program refers only to $F_{calc}$ but not to to $F_c=F_{calc}+F_{part}$.
$<$xrefin-do-expression$>$:==
$<$xrefin-vflc$>$ [ $<$op$>$
$<$xrefin-do-expression$>$ ]
represents a mathematical operation and is defined in Section 2.16.
$<$xrefin-vflc$>$:==
$<$function$>$
$\vert$ $<$xrefin-function$>$ $\vert$ $<$symbol$>$ $\vert$ $<$real$>$ $\vert$ $<$integer$>$ $\vert$ $<$complex$>$ $\vert$ $<$xrefin-property$>$ represents mathematical functions and is defined in Section 2.16. Special xrefin functions are defined below. The data type of the function arguments has to match the data type of the operands.
$<$xrefin-property$>$:==
FCALC
specifies calculated structure factors $F_{calc}$ (complex).
FOBS
specifies observed structure factors $F_{obs}$ (complex).
FPART
specifies partial structure factors $F_{part}$ (complex).
SIGMA
specifies $\sigma$ values (real).
TEST
is an array for cross-validation that allows one to compute the free $R$ value (see Chapter 17).
WEIGHT
specifies $W_{\vec{h}}$ weights (real).
$<$xrefin-function$>$:==
H()
defines an array that consists of the Miller index h.
K()
defines an array that consists of the Miller index k.
L()
defines an array that consists of the Miller index l.
S()
defines an array that consists of the length of the reciprocal lattice vector for each reflection h,k,l.

next up previous contents index
Next: Requirements Up: Manipulating Reflection Data Previous: Manipulating Reflection Data   Contents   Index
Xplor-NIH 2025-03-21
  • Privacy Policy
  • Freedom of Information Act
  • Accessibility
  • Disclaimers
  • Copyright
  • Vulnerability Disclosure Policy
  • U.S. Department of Health and Human Services
  • National Institutes of Health