Generate XDS.INP: Difference between revisions

Jump to navigation Jump to search
→‎The script: rev 1.13 make /usr/local/lib64/dectris-neggia.so into a variable, and similarly for durin-plugin.so
(→‎The script: KD 27.4.22 always print out detector serial number)
(→‎The script: rev 1.13 make /usr/local/lib64/dectris-neggia.so into a variable, and similarly for durin-plugin.so)
(One intermediate revision by the same user not shown)
Line 130: Line 130:
# revision 1.11 . KD / Helena Taberman ROTATION_AXIS=-1 0 0 for Eiger .cbf data from Petra P14
# revision 1.11 . KD / Helena Taberman ROTATION_AXIS=-1 0 0 for Eiger .cbf data from Petra P14
# revision 1.12 . KD / Helena Taberman correct rev 1.11 to be 0 -1 0
# revision 1.12 . KD / Helena Taberman correct rev 1.11 to be 0 -1 0
REVISION="1.12 (25-MAR-2022)"
# revision 1.13 . KD turn /usr/local/lib64/dectris-neggia.so into a variable, and similarly for durin-plugin.so
REVISION="1.13 (02-Jun-2022)"


#                                                                                                             
#                                                                                                             
Line 138: Line 139:
#                                                                                                             
#                                                                                                             
# known problems:                                                                                             
# known problems:                                                                                             
# revision 1.10 . KD implement NeXus for Eiger
# - for ADSC detectors, there are at least three ways to obtain ORGX and ORGY values from the header (see below);
# - for ADSC detectors, there are at least three ways to obtain ORGX and ORGY values from the header (see below);
# - the same might be a problem for MAR headers, too (not sure about this)  
# - the same might be a problem for MAR headers, too (not sure about this)  
# - on Mac OS X, the Xcode command line tools (from https://developer.apple.com/download/more/) are needed.                             
# - on macOS, the "Command Line Tools for Xcode" (from https://developer.apple.com/download/more/) are needed.                             
#                                                                                                                 
#                                                                                                                 
# notes for debugging of the script:                                                                             
# notes for debugging of the script:                                                                             
Line 1,005: Line 1,005:
if [ "$DET" == "eiger" ] && [ "$is_h5" == 1 ]; then
if [ "$DET" == "eiger" ] && [ "$is_h5" == 1 ]; then
   if [ "$DLS" == 0 ] ; then
   if [ "$DLS" == 0 ] ; then
     if [ -e /usr/local/lib64/dectris-neggia.so ]; then
     neggia_path=/usr/local/lib64/dectris-neggia.so
       echo LIB=/usr/local/lib64/dectris-neggia.so >> XDS.INP
    if [ -e $neggia_path ]; then
       echo LIB=$neggia_path >> XDS.INP
       echo LIB= line was written to XDS.INP . For Apple ARM64 processors, you must modify the name.
       echo LIB= line was written to XDS.INP . For Apple ARM64 processors, you must modify the name.
     else
     else
       echo !LIB=/usr/local/lib64/dectris-neggia.so >> XDS.INP
       echo !LIB=/usr/local/lib64/dectris-neggia.so >> XDS.INP
       echo /usr/local/lib64/dectris-neggia.so was not found - specify location manually!
       echo dectris-neggia.so not found. Specify LIB=<path-to-dectris-neggia> in XDS.INP & fix your generate_XDS.INP !
     fi
     fi
   else
   else
     if [ -e /usr/local/lib64/durin-plugin.so ]; then
     durin_path=/usr/local/lib64/durin-plugin.so
       echo LIB=/usr/local/lib64/durin-plugin.so >> XDS.INP
    if [ -e $durin_path ]; then
       echo LIB=$durin_path >> XDS.INP
       echo LIB= line was written to XDS.INP
       echo LIB= line was written to XDS.INP
     else
     else
       echo !LIB=/usr/local/lib64/durin-plugin.so >> XDS.INP
       echo !LIB=/usr/local/lib64/durin-plugin.so >> XDS.INP
       echo /usr/local/lib64/durin-plugin.so was not found - specify location manually!
       echo durin-plugin.so not found. Specify LIB=<path-to-durin-plugin> in XDS.INP & fix your generate_XDS.INP !
     fi
     fi
   fi  
   fi  
2,652

edits

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

Navigation menu