| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 1556 |
|
| Package | utility | |
| Module | table |
vis:=table("3C273XC1.MS");
vis.summary();
visbyants:=tableiterator(vis, "ANTENNA1 ANTENNA2");
visbyants.reset();
while(visbyants.next()) {
nrows:=visbyants.table().nrows();
print "Antenna1 ", visbyants.table().getcell("ANTENNA1", 1),
" Antenna2 ", visbyants.table().getcell("ANTENNA2", 1),
": ", nrows, "samples";
}
This example iterates through the table on ANTENNA1 and ANTENNA2.
Thus each call to next forms a (reference) table
containing the rows of a single baseline in the main table.
The table function can be used to get access to the current
subset.
| tableiterator | Construct a tableiterator |
| close | close the tableiterator tool |
| done | end the tableiterator tool |
| next | Advance to the next table subset |
| reset | Reset iteration to the beginning |
| table | Return the current table subset |
| terminate | Terminate the iteration and clean up memory |