Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: imagerpositiontest.view - Function Up: imagerpositiontest - Tool Previous: imagerpositiontest.set_tolerance - Function


imagerpositiontest.sourcecompare - Function



Package synthesis
Module synthesistester
Tool imagerpositiontest


Compare the found source positions with the true source positions.


Synopsis
sourcecompare(complistfound, complisttrue)


Description
Compare the found and true source positions. This method is called by dotests(). It returns an array of booleans of shape [nchan,nsources], the booleans representing the result of the test.



Arguments

complistfound The disk componentlist containing the found components
Allowed: Name of disk componentlist
Default: None
complisttrue The disk componentlist containing the simulated components
Allowed: Name of disk componentlist
Default: None


Returns
2-d array of booleans of shape [nchan,number of components in complisttrue]


Example
- include 'imagerpositiontest.g';
- ipt := imagerpositiontest();
# allow a lot of slop
- ipt.set_deconvolution_function('mem');
- ipt.set_mem_parms(algorithm='entropy',niter=25,sigma='0.1Jy');
- ipt.dotests();
# if you missed it the first time
- res := ipt.sourcecompare('imager_position_test/found_comp.cl',
+ 'imager_position_test/simu_comp.cl');
- res;
[[1:1,]
    T T T T]





next up previous contents index
Next: imagerpositiontest.view - Function Up: imagerpositiontest - Tool Previous: imagerpositiontest.set_tolerance - 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