RAW2RAW: RAW to RAW file format conversion utility. Converts to and/or from: *) DIFFRAC-PLUS raw or sim file format. *) DIFFRAC-AT V2 (aka V3) raw or sim file format. *) DIFFRAC-AT V1 raw or sim file format. *) PLOTSO file format (ASCII). Can also convert to (but cannot read these file formats): *) DBW & DBWS file formats (ASCII). *) GSAS file format (ASCII). *) UXD file format (ASCII). Can also convert from (but cannot write these file formats): *) DIFFRAC-5000 V2 (VAX/VMS) *) DIFFRAC-5000 V1 (VAX/VMS) *) NACS (VAX/VMS) *) NACS (PDP-11/TSX|RT-11) *) DIFFRAC-11 (PDP-11/RSX) *) DIFFRAC-5 (PDP-11/RSX) *) Philips UDF format (might read only a subset of UDF files) RAW2RAW only requires the names of certain files as user input. The user has the option of enterring ALL filenames on the command line, or to leave the command line blank and have the program prompt the user for all filenames. Wildcards are permitted in filename inputs. Syntax for command line: RAW2RAW [/A] [/B] [/FORMAT:#] filename[.raw] [/OUT:filename[.out]] Additional switches for UXD output: [/C] [/I:#] [/N] [/Sc] [/W:#] [/2] [/A] Always convert. Avoids "File already in requested format". [/B] Batch mode: suppresses final "Hit to continue" message. filename[.raw] Required. The name of the RAW data file containing ranges. The input file format is automatically determined. filename[.out] Optional. Defaults to ".out". [/F:#] Optional. Defaults to DIFFRAC-PLUS. Possible values are: 1 = DIFFRAC-AT V1 2 = DIFFRAC-AT V2/V3 3 = DIFFRAC-PLUS 4 = PLOTSO 5 = DBW 6 = DBWS 7 = GSAS 8 = UXD [/C] CPS mode: Outputs data points in CPS, default is intensity. [/I:#] Item number: Outputs data points [/N] Noheader mode: Suppress output of header information. [/Sc] Separator: ,=comma, ;=semi-colon, s=space, t=tab, n=none. [/W:#] Width: Width of each item in characters for default separator. [/2] 2theta mode: Include 2T angle on each line of data points. Note: "[]" are not type. They are used to bracket optional or defaulted values. Note: all command line switches may be abbreviated and the separator character may be ":", "=", or "-". ie. "/F:1", "/F=1", "/FORMAT-1" are equivalent. Note: the command line arguments may be in any order. Current limitations (ignored fields in file formats): *) RAW PLUS: supplemental range header records (osc, psd, com). *) RAW PLUS: reading RAW1.00 measuring electronics may be incorrect. *) RAW V2: diffractometer configuration word. *) RAW V2: oscillating drive, amplitude, speed. *) RAW V2: supplemental range header record for comment (4). *) DIFFRAC-5000 V2: scintillation detector parameters, conversions of slit settings (mm. to deg.), temperature parameters, other angle settings (chi, phi, x, y). *) DIFFRAC-5000 V1: many fields are not converted. *) NACS VMS: temperature hold time. *) NACS TSX/RT-11: not yet implimented!. *) DIFFRAC-11:variable slit settings, fixed theta angle/delay time. *) DIFFRAC-5: totally untested! *) UXD: Only minimal information is in header *) UDF: Only tested conversion from a single UDF file (single range). History: 1.0.09 26Dec01 Added support for EXTRA_RECORD_AD support in both DIFFRACplus and UXD file formats. Fix conversion of angles from GADDS angle convention to DIFFRACplus angle convention (for GADDS 4.1.08 and earlier RAW files). 1.0.08 28Mar01 Added support for reading Philips UDF files. 1.0.07 05Feb01 Added support for PSD files with step widths of 0.008264 deg. Affected GSAS, DBW, DBWS output ASCII files. 1.0.07 17Mar99 Added minimal UXD support (write only, minimal header info). Added switches for UXD output: [/C] [/I:#] [/N] [/Sc] [/W:#] [/2]. Added ability to convert readonly files (ie. directly off CDROM archive). Fixed truncating file to proper size when overwriting existing file. Added GUI version of RAW2RAW as well as console version. 1.0.06 01Oct97 Bruker AXS release. 1.0.05 07May97 bug fix for storing auxilliary generator record in DIFFRAC-AT V2/V3 files. (EVA could not read these files). Added "Hit to continue:" message and "/B" batch mode switch to suppress this message. 1.0.04 10Mar97 bug fix for reading DIFFRACplus file which contains extra range header records. Now available for both DOS & NT platforms. 1.0.03 28Aug96 added support for reading DEC file formats DIFFRAC-5 added, but untested (no test files available!). DIFFRAC-11 added and tested. NACS PDP-11 support is skipped! (no test files available!). NACS VMS added and tested. DIFFRAC-5000 V1 is implemented OK (just better than RAWCONV). Multiple series are converted as additional ranges. DIFFRAC-5000 V2 added and tested. DBW added decimal point to counts. DBWS anginc & angend fields corrected. DBWS & GSAS correct bug when title is greater than 40 characters. Deletes failed or partially converted output files. 1.0.02 26Jul96 bug fix for reading DIFFRAC-AT V1 files 1.0.01 01May96 added (released version) support for writing GSAS files, but not reading these files. 1.0.00 01Feb96 added (released version) support for writing DBW & DBWS files, but not reading these files. 0.9.05 29Jan96 added support for RAW1.01 file headers and related clean-up. ASCIIZ strings used in PLUS files, ASCII strings used in other files. 0.9.04 22Jan96 added support for PLOTSO files. 0.9.03 17Jan96, added support for wildcard characters in filename(s). 0.9.02 11Jan96 added slit conversion (div, anti, det) V2/3->DiffPlus & DiffPlus->V2/3. detector constants from mV to V. 0.9.01 20Dec95 added defaulting of file names and extensions. "Converted by RAW2RAW 0.9.01 from XXX" to comment field. debug level from SAXI$DBGLEVEL env. var.. 0.0.01 ??Dec95 alpha test version (to JPF & G.Granacher).