Generate XDS.INP: Difference between revisions

Jump to navigation Jump to search
→‎The script: fixed editing error
(→‎The script: Add support for Pilatus 12M, give help if $5 defined, i.e. unquoted frame pattern)
(→‎The script: fixed editing error)
Line 1,261: Line 1,261:
   # Create a pattern like "XX\|YY" to search overriden parameters.
   # Create a pattern like "XX\|YY" to search overriden parameters.
   REDEF_TOKENS="POLARIZATION\|ROTATION_AXIS\|TRUSTED_REGION"
   REDEF_TOKENS="POLARIZATION\|ROTATION_AXIS\|TRUSTED_REGION"
   [ "$NEED_SITE_FILE" != "" ] && REDEF_TOKENS=$REDEF"\|ORGX\|ORGY\|DETECTOR_DISTANCE\|"
   [ "$SEGMENTED" != "" ] && REDEF_TOKENS=$REDEF_TOKENS"\|ORGX\|ORGY\|DETECTOR_DISTANCE\|"
  echo REDEF=$REDEF_TOKENS
   pattern=$(grep "$REDEF_TOKENS" $site_file | grep -v SEGMENT | uniq | awk 'match($0,/^ *(\w+) *=/,a){x=x"\\|"a[1];}END{print substr(x,3);}')
   pattern=$(grep "$REDEF_TOKENS" $site_file | grep -v SEGMENT | uniq | awk 'match($0,/^ *(\w+) *=/,a){x=x"\\|"a[1];}END{print substr(x,3);}')
   if [ "$pattern" != "" -a $(grep "^!! *\($pattern\)" XDS.INP) != ""]; then
   if [ "$pattern" != "" -a $(grep "^!! *\($pattern\)" XDS.INP) != ""]; then
27

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu