>> python MultiScanMerge.py ./12bankdata/* --i-fxye -P -m 1.0 -b 0.02 --o-fxye -o . Usage: python MultiScanMerge.py [Options] file1 file2 ... -o output This will merge ascii (x,y,error) data files. It insures the continuity of X values, calculates the mean values of y and gives options to calculate e the errors. Options: --version show program's version number and exit -h, --help show this help message and exit -o OUTPUT, --output=OUTPUT Output path [default: /Users/suchomel/new_merge] Booleans Options: -O, --omit Omit errors processing. The output file will not contain the errors [default: False] -H, --headers Keep all files headers in output file. [default: False] -p, --plot Show a plot of output data after merging. [default: False] -P, --Plot-errors Show a plot with error bars of output data after merging. [default: False] -s, --severe Makes any runtime non-critical error stops the execution of the program. [default: False] -v, --verbose Makes lot of noise ... [default: False] param Options: -j JUMP, --jump=JUMP Number of header lines to skip. [default: 0] -f FORMAT, --format=FORMAT The output data format. [default: %15.6f] -c COMMENTS, --comments=COMMENTS The character or string used to indicate the start of a comment. [default: #] -d DELIMITER, --delimiter=DELIMITER The string used to separate values. By default, this is any whitespace [default: ] -n NEWLINE, --newline=NEWLINE The string used for newline. [default: \n] -e ERROR, --error=ERROR Error order calculation. if 0 error=1/sqrt(sum(intensities)), otherwise error=sum(err(i)^order)^(1/order). [default: 2] -b BIN, --bin=BIN Give merged data bin size. If neglected, program will consider the smallest bin size found in data [default: none] -m MIN, --min=MIN Sets the minimum range of data. If neglected, program will consider the minimum value found in data. [default: none] -M MAX, --max=MAX Sets the maximum range of data. If neglected, program will consider the maximum value found in data. [default: none] --rx=RESCALEX Multiply all files X axis data by rescale factor. e.g 2th,d,q,... [default: 1.0] --ry=RESCALEY Multiply all files Y axis data by rescale factor. e.g intensity,... [default: 1.0] input Options: Those are boolean options, select one to force a predefined input format --i-fxye Import GSAS .fxye files. [default: False] --i-csv Import excell .csv files. [default: False] output Options: Those are boolean options, select one or many to export in different output formats. In none used, user-defined format by parsing given arguments will be used and exported in .txt file --o-chi Export as .chi file format. [default: False] --o-csv Export as .csv file format. [default: False] --o-fxye Export as GSAS .fxye file format. [default: False] authors: Bachir AOUN (baoun@aps.anl.gov), Matthew SUCHOMEL (suchomel@aps.anl.gov)