This example shows how to define an arbitrary weighting scheme that is a function of SIGMA, FOBS, FCALC, S, H, K, and L. The statement should be inserted at any place after reading the reflections and before calculating the structure factors with the new weights. The following lines are examples of possible weighting schemes:

RESOlution 8. 2.5 FWINdow 0.1 100000. DO (WEIGHT = 1. / SIGMA^2 ) DO (WEIGHT = 1. / ( 10. + 60. * ( S()/2. - 0.16667 ))^2 )