1 | #!/bin/csh |
---|
2 | |
---|
3 | if( -e verification/verificationCube.fits ) then |
---|
4 | echo "Test FITS file exists. Moving to testing." |
---|
5 | else |
---|
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." |
---|
11 | endif |
---|
12 | |
---|
13 | echo |
---|
14 | echo "Running the first Duchamp test:" |
---|
15 | echo " [This is a simple sigma-clipping search]" |
---|
16 | rm -f /tmp/duchamptest |
---|
17 | Duchamp -p verification/input1 > /tmp/duchamptest |
---|
18 | echo "Done. Comparison to standard result:" |
---|
19 | echo "Differences with Results:" |
---|
20 | diff -I"Results of the Duchamp source finder:" verification/results1.txt verification/stdResults1.txt |
---|
21 | echo "Differences with Spectra:" |
---|
22 | diff -I"CreationDate" verification/spectra1.ps verification/stdSpectra1.ps |
---|
23 | |
---|
24 | echo |
---|
25 | echo "Running the second Duchamp test:" |
---|
26 | echo " [This uses the FDR method]" |
---|
27 | rm -f /tmp/duchamptest |
---|
28 | Duchamp -p verification/input2 > /tmp/duchamptest |
---|
29 | echo "Done. Comparison to standard result:" |
---|
30 | echo "Differences with Results:" |
---|
31 | diff -I"Results of the Duchamp source finder:" verification/results2.txt verification/stdResults2.txt |
---|
32 | echo "Differences with Spectra:" |
---|
33 | diff -I"CreationDate" verification/spectra2.ps verification/stdSpectra2.ps |
---|
34 | |
---|
35 | echo |
---|
36 | echo "Running the third Duchamp test:" |
---|
37 | echo " [This reconstructs the cube, then searches with simple sigma-clipping]" |
---|
38 | echo " [It will take longer than the first two.]" |
---|
39 | rm -f /tmp/duchamptest |
---|
40 | Duchamp -p verification/input3 > /tmp/duchamptest |
---|
41 | rm -f /tmp/duchamptest |
---|
42 | echo "Done. Comparison to standard result:" |
---|
43 | echo "Differences with Results:" |
---|
44 | diff -I"Results of the Duchamp source finder:" verification/results3.txt verification/stdResults3.txt |
---|
45 | echo "Differences with Spectra:" |
---|
46 | diff -I"CreationDate" verification/spectra3.ps verification/stdSpectra3.ps |
---|
47 | |
---|
48 | echo "No differences? Then everything worked as expected\!" |
---|