NRAO Home > CASA > CASA Cookbook and User Reference Manual
3.3.2.10 Interactive Flagging in plotxy
Hint!
In the plotting environments such as plotxy, the ESC key can be used to remove the last region box drawn.

Interactive flagging, on the principle of “see it — flag it”, is possible on the X-Y display of the data plotted by plotxy. The user can use the cursor to mark one or more regions, and then flag, unflag, or list the data that falls in these zones of the display.

There is a row of buttons below the plot in the window. You can punch the Mark Region button (which will appear to depress), then mark a region by left-clicking and dragging the mouse (each click and drag will mark an additional region). You can get rid of all your regions by clicking again on the Mark Region button (which will appear to un-depress), or you can use the ESC key to remove the last box you drew. Once regions are marked, you can then click on one of the other buttons to take action:

  1. Flag — flag the points in the region(s),
  2. Unflag — unflag flagged points in the region(s),
  3. Locate — spew out a list of the points in the region(s) to the logger (Warning: this could be a long list!).

Whenever you click on a button, that action occurs without forcing a disk-write (unlike previous versions). If you quit plotxy and re-enter, you will see your previous edits.


PIC PIC

Figure 3.7: Plot of amplitude versus uv distance, before (left) and after (right) flagging two marked regions. The call was: plotxy(vis=’ngc5921.ms’,xaxis=’uvdist’, field=’1445*’).

_________________________________________________________________________________________


A table with the name <msname>.flagversions (where vis=<msname>) will be created in the same directory if it does not exist already.

It is recommended that you save important flagging stages using the flagmanager task (§ 3.2).


More information about CASA may be found at the CASA web page

Copyright © 2010 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search