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: Example: Definition of a Up: Manipulating Reflection Data Previous: Requirements

Example: Scaling

In the following example, one adds $F_{part}$ to $F_{calc}$, scales $F_{calc}$ to the same magnitude as $F_{obs}$, and then computes $2F_{obs}-F_{calc}$ amplitudes. The phases of $F_{calc}$ will not be touched. The operations are carried out for the selected reflections only. The operation involving $F_{part}$ is necessary only when $F_{part}$ is actually used; note that the do statement does not automatically add $F_{part}$ to $F_{calc}$.
RESOlution 8. 2.5
FWINdow 0.1 100000.
DO COMPLEX (FCALC=FCALC+FPART)
DO COMPLEX (FPART=0)
DO SCALE (FCALC=FOBS) 
DO AMPLITUDE (FCALC=2*FOBS-FCALC)


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