This package contains the source code for the Sedcopy demonstration program which illustrates how to use the the SEDLib API to read, inspect, modify, and write SED documente. How to use: 1) Install the SEDLib runtime libraries: These are needed by Sedcopy and are in a separate downloadable package. mkdir -p /data1/vo/lib (for example) cd /data1/vo/lib wget http://vo.cfa.harvard.edu/soft/downloads/SEDLib_1.2_runtime-1.0.tar.gz tar xvzf SEDLib_1.2_runtime-1.0.tar.gz This generates the directory SEDLibRuntime which will contain various files including SEDLib_1.2_run.jar which is the one that you need. The package can also be downloaded from http://vo.cfa.harvard.edu/soft/#runtimepackage 2) Point your classpath to the the runtime library jar: setenv CLASSPATH .:/data1/vo/lib/SEDLibRuntime/SEDLib_1.2_run.jar Be sure to include the current directory in the classpath 3) Install the Sedcopy code: mkdir -p /data1/vo (for example) cd /data1/vo wget http://vo.cfa.harvard.edu/soft/downloads/iue-1.0.tar.gz tar xvzf iue-1.0.tar.gz cd sedcopy This generates the sedcopy/ directory containing source code for Sedcopy, some sample data, a build script, and other files. (Obviously, if you're/ reading this README, it is likely you have already downloaded and untarred this package. If so, simply change into the "sedcopy" directory and continue with the next step.) The package can also be downloaded from http://vo.cfa.harvard.edu/soft 4) Compile the code, with CLASSPATH pointing to the SEDLib runtime jar. mkdir classes javac -cp \$CLASSPATH -d classes src/sedcopy/*.java This makes the file Sedcopy.class and the supporting class files. An alternative way to build the code is to copy (or link) the SEDLib_1.2_run.jar file in the iue directory, and type: ant compile 5) Run the code: We'll use the example input file "data/CompleteSed.vot", and create an output votable, CompleteSed.vot.vot". (Type the following 2 lines as a single line.) java -cp $D/sed/SEDLib_1.2_run.jar:classes sedcopy.Sedcopy data/CompleteSed.vot vot tmp.xml xml The program can also be run with this example file by typing ant run If you have and problems, questions, or suggestions, contact jcant\@cfa.head.harvard.edu