Interactive Flagging - BLFLAG

The task blflag plots visibility data (usually baseline at a time, with axes such as amplitude, phase, real part, imaginary part, time, etc), and allows the user to interactively flag that data.

The user positions the plot cursor, and uses the mouse buttons or single keyboard characters to perform an operation. The interactive commands are as follows:

Left-Button:
Pressing the left mouse button flags the nearest visibility.
Right-Button:
Pressing the right mouse button causes blflag to precede to the next baseline (or to finish up, if all baselines have been cycled through).
Carriage-return:
This gives a brief help message.
a:
Flag nearest visibility (same as left mouse button).
c:
Clear the flagging for this baseline, and redraw plot.
h:
Give help (same as carriage return).
p:
Define a polygonal region, and flag visibilities within this region. You define the vertices of the polygon by moving the cursor and then hitting the left mouse button (or a). You finish defining the polygon by hitting the right mouse button (or x). You can delete vertices with the middle mouse button (or d).
q:
Abort completely. This exist without apply the flagging.
r:
Redraw plot.
x:
Move to next baseline (same as right mouse button).

The inputs to blflag are straightforward.

The inputs are normally very simple:

BLFLAG
vis=vela.line Specify visibility dataset.
device=/xs Specify an interactive PGPLOT device.
stokes Defaults to `ii'.
line Defaults to all channels.
axis Defaults to time vs amplitude.
select Defaults to selecting all data.

For a point source (e.g. calibrator), a particularly useful way of flagging, at least after initial calibration, is to plot the ``scatter diagram'' - real vs imaginary parts of the visibility, with all baselines simultaneously. This should show points scattered around the true flux of the source. An arc in such a plot indicates poor phase stability. Typical inputs in this mode are

BLFLAG
vis=cal.uv Specify visibility dataset.
device=/xs Specify an interactive PGPLOT device.
stokes Defaults to `ii'.
line Defaults to all channels.
axis=real,imag Plot real vs imaginary.
opptions=nobase Plot all baselines simultaneously.

Miriad manager
2016-06-21