Problem specifically with (optional):
Description:
ref2sac incorrectly converts Ref Tek RT 130 data files to SAC. I found and fixed a number of bugs in the Mac OS X PASSOFT release of ref2sac. I added LAT, LON, and ELEV to the SAC files. I set the dependent variable type in the SAC file to UNKNOWN, since the data are in counts, not engineering units. I added an option to create the SAC output files in a single, flat directory structure, with unique file names. Those names include an .R. to identify that they contain raw counts.
\nAttached are my patched files and a README of the changes, plus several sample data files. (The sample data files should not be redistributed without permission.) The sample data files were converted to SAC using the following commands:
\n$ ref2sac --verbose --inDir DElValleDam_crest --outDir ref2sacData >DElValleDam_crest/ref2sac.out
$ ref2sac --verbose --inDir ElkGroveRT130 --outDir ref2sacData >ElkGroveRT130/ref2sac.out
$ ref2sac --verbose --inDir HoltSchool_FF --outDir ref2sacData >HoltSchool_FF/ref2sac.out
\nMaybe no one has worked on ref2sac in a while. I noticed there was no ref2sac binary in the Mac OS X PASSOFT distribution, and the ref2sac directory is not included in the src/Makefile.
\nNOTE: all the uploaded files have a .txt appended to their names. The file name were also slightly mangled by the file uploader, which added the underscores.
\nLarry Baker
\nUS Geological Survey