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


next up previous contents index
Next: tableplot.zoomplot - Function Up: tableplot - Tool Previous: tableplot.markflags - Function


tableplot.flagdata - Function



Package utility
Module table
Tool tableplot


Flag Data for selected flag regions


Synopsis
flagdata(diskwrite, rowflag)


Description
Set flags for all regions marked using markflags(). The plot is automatically redrawn after applying flags.

If reduction TaQL functions such as sum,mean are used, flags corresponding to all accessed values will be modified. For example, with a measurement set table, flagging on the mean amplitude of stokes 1 and channels 1 to 5, given by 'MEAN(AMPLITUDE(DATA[1,1:5]))' results in flags being set for all 5 accessed channels.

For a measurement set, by default, flags are set only for accessed channels and stokes when the DATA column is used. However all channels/stokes can be flagged for the marked flag regions by setting the corresponding row flag.



Arguments

diskwrite   1 to write flags to the table on disk, 0 to set dummy flags
    Allowed: Integer
    Default: 0
rowflag   1 to set a row-flag in addition to individual data flags, 0 to ignore row flags if individual flags exist
    Allowed: Integer
    Default: 0


Returns
0 if flagging is successful, -1 otherwise


Example
# mark 2 flag regions on a multi-panel plot, one in panel 1 and one
# in panel 2. Then apply the flags and write to disk.
  tp.markflags(panel=1);
  tp.markflags(panel=2);
  tp.flagdata(diskwrite=1,rowflag=0);





next up previous contents index
Next: tableplot.zoomplot - Function Up: tableplot - Tool Previous: tableplot.markflags - 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