source: trunk/VerifyDuchamp.sh @ 148

Last change on this file since 148 was 148, checked in by Matthew Whiting, 18 years ago

Added a the capability of doing a verification that Duchamp is working
correctly. In the directory verification/ there is a C++ program that
creates a small FITS file with five sources in it, and several input files.
There is also a shell script that, when run, will run Duchamp with these
input files and test whether there are any differences between the output and
that expected.
The Makefile has also had a compilation statement added for the C++ file.

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1#!/bin/csh
2
3if( -e verification/verificationCube.fits ) then
4    echo "Test FITS file exists. Moving to testing."
5else
6    echo "Test FITS file has not been created. Doing so now."
7    make createTestImage
8    createTestImage.x
9    rm -f createTestImage.x
10    echo "Done. Moving to testing."
11endif
12
13echo
14echo "Running the first Duchamp test:"
15echo "  [This is a simple sigma-clipping search]"
16rm -f /tmp/duchamptest
17Duchamp -p verification/input1 > /tmp/duchamptest
18echo "Done. Comparison to standard result:"
19echo "Differences with Results:"
20diff -I"Results of the Duchamp source finder:" verification/results1.txt verification/stdResults1.txt
21echo "Differences with Spectra:"
22diff -I"CreationDate" verification/spectra1.ps verification/stdSpectra1.ps
23
24echo
25echo "Running the second Duchamp test:"
26echo "  [This uses the FDR method]"
27rm -f /tmp/duchamptest
28Duchamp -p verification/input2 > /tmp/duchamptest
29echo "Done. Comparison to standard result:"
30echo "Differences with Results:"
31diff -I"Results of the Duchamp source finder:" verification/results2.txt verification/stdResults2.txt
32echo "Differences with Spectra:"
33diff -I"CreationDate" verification/spectra2.ps verification/stdSpectra2.ps
34
35echo
36echo "Running the third Duchamp test:"
37echo "  [This reconstructs the cube, then searches with simple sigma-clipping]"
38echo "  [It will take longer than the first two.]"
39rm -f /tmp/duchamptest
40Duchamp -p verification/input3 > /tmp/duchamptest
41rm -f /tmp/duchamptest
42echo "Done. Comparison to standard result:"
43echo "Differences with Results:"
44diff -I"Results of the Duchamp source finder:" verification/results3.txt verification/stdResults3.txt
45echo "Differences with Spectra:"
46diff -I"CreationDate" verification/spectra3.ps verification/stdSpectra3.ps
47
48echo "No differences? Then everything worked as expected\!"
Note: See TracBrowser for help on using the repository browser.