FTS-2 DR Software Preliminary Release. Jan 10 2006. I.) Summary of the Data Reduction package (DR2FTS.tgz) -Java docs of FTS-2 DR Java code is under the 'docs' directory. -Source code of FTS-2 DR is under the the 'sources' directory. -Under the 'test' directory: -fts2deploy.wsdd and TestSOAPServer.java are for testing SOAP Server; -TestSOAPClient.java is for testing SOAP client; -TestDramaServer.java is for testing Drama Server (Drama's ditscmd command is used as a Drama client); -test_rawdata.sdf is a raw data file for test purpose. II.) External Java libraries a) Java version of FFTPack (jfftpack.tgz) http://netlib.bell-labs.com/netlib/fftpack/ or http://www.netlib.org/fftpack/ b) Jama (Jama-1.0.2.jar) http://math.nist.gov/javanumerics/jama/ c) StarJava must be the latest version in Starlink CVS repository d) Java version of Drama Add the following two lines to the file drama_local.cf before running 'configure' of Drama #undef HasJava #define HasJava YES III.) Running the programs Under the 'test' directory of DR2FTS.tgz, there are three Java test programs: TestDramaServer.java, TestSOAPServer.java, and TestSOAPClient.java. It should be noted that the FTS-2 engine now consists of only 2 modules; a configuration module and a data reduction module. This differs from the PDR documentation where the processing was broken down into Interpolation, phase correction, and FFT modules. This means that the FTS-2 primitives will be simplified somewhat; all processing parameters will be set with one action, and the full FTS-2 processing will be done with another action. 1. SOAP Interface Modify the path of the web service definition file, fts2deploy.wsdd, in test/TestSOAPServer.java. Program TestSOAPServer.java is used to start a SOAP server with fts2deploy.wsdd. In TestSOAPClient.java, there are three operations: setParameters (set the parameters of FTS-2 data reduction), dataReduction (run the data reduction procedure), exitSOAP (stop the SOAP server and exit). 2. Drama Interface Use 'ditscmd' as Drama client. Also see, test/TestDramaClient.txt. A. Start the Drama server: java -cp .:${CLASSPATH} TestDramaServer B. Test three Drama Actions of Drama task, Drama2FTS shut down the Drama server: ditscmd Drama2FTS EXIT set the parameters of FTS-2 data reduction (TBD): ditscmd Drama2FTS SETPARAMETERS "pcfSize_h=40" "dsSize=80" "fittingDegree=2" "weight_limit=0.01" run the data reduction: ditscmd Drama2FTS DATAREDUCTION "in=test_rawdata" "out=test_reduced" IV.) Data File Format The format of the raw data file, test/test_rawdata.sdf, conforms to that of the raw data file, stare.sdf, sent by Andy last year and is slightly different from that defined in SC2-SOF-IC210-01 (TBD).