Description
This is the heart of
imagerpositiontest. It creates the
simulator and the associated ms, creates and deconvolves the image,
compares the source positions from the image to the known component
positions, and summarizes these comparisons. The user may speicify
numerous parameters prior to invoking
dotests() via the many
set_* functions, or may specify none at all, in which case
sensible defaults are used.
Returns
T or fail
Example
# a very simple, default test
- include 'imagerpositiontest.g'
# construct an imagerpositiontest tool
- ipt := imagerpositiontest('scratchdir');
- ipt.dotests();
T
# view the restored image
- ipt.view();
- ipt.done();
Running dotests() using all defaults takes between 4 and 5
minutes on a Linux box with 4 500 MHz Xeon processors (only one used at a
time in this implementation however) and 4 GB of RAM.
Here is a more elaborate test:
include 'imagerpositiontest.g';
ipt := imagerpositiontest();
ok := ipt.set_sim_parms(frequency='30GHz',docorrupt=F,nsources=10,nfields=4,
nchan=1,scalefactor=1.2,source_spread=0.9,
sourcedirection=dm.direction('J2000', '17h44m0.0',
'50d0m0.000'));
ipt.set_deconvolution_function('mem');
ipt.set_mem_parms(algorithm='mfentropy',niter=20);
if(is_fail(ok)) {
print ok::message;
exit 1;
}
ok := ipt.dotests();
if(is_fail(ok)) {
print ok::message;
exit 1;
}
ipt.view();
Next: imagerpositiontest.findsource - Function
Up: imagerpositiontest - Tool
Previous: imagerpositiontest.done - Function
 
Contents
 
Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2006-10-15