Viewer Testing -- Measurement Sets
(If you still need to load the test data into your working directory, go
here).
(To return to
Image Testing go
here. The top of that page contains some orientation information about windows, toolbars, naming conventions, etc.).
0. MS Viewer testing -- [Re]starting the Viewer
To be sure we start fresh, quit the viewer if it is active by closing any display panel[s] you have open. (Hitting
ctrl-C
on the console should
not stop the viewer; you could try that first if you want).
To restart the viewer:
From system prompt :
casaviewer
or, from the casapy prompt:
viewer
For reference, here are the main toolbar buttons again, with the names I use to refer to them here (left to right):
%BEGINFIGURE{label="fig:toolbar" caption="Main Toolbar."}%
%ENDFIGURE%
Open (raise
Load Data window)
Adjust (raise
Data Options window)
Register
Close Data
New Panel (creates another display panel window)
Panel Options (raise
Panel Display Options window)
Print
Unzoom (zoom out all the way)
Zoom In (x2)
Zoom Out (/2)
Identical functions (except for zooming) can also be found within the menus.
1. Loading an MS.
Same as with images:
Press
Open.
In the
Load Data window, select
continuum.ms
.
Press
Raster Image (it may take a few seconds to load).
In the
Data Options window,
Basic Settings, set
Power cycles to
-1
. (This allows data of both dim and bright fields to be seen).
%BEGINFIGURE{label="fig:continuum" caption="Displaying MS Data."}%
%ENDFIGURE%
2. Flagging.
click
ZoomIn three times.
Hit (keyboard)
right-arrow
twice (as always when doing this, be sure the display panel has keyboard focus first).
Using the
RectRegion mouse tool, sweep out a rectangle similar to the one shown:
%BEGINFIGURE{label="fig:flagrect0" caption="Selecting a Rectangular Region to Flag."}%
%ENDFIGURE%
Double-click inside the rectangle you just drew. The rectangle should turn a light shade of blue (darker blue squares are flags that are already 'saved'; light blue areas are unsaved flags):
%BEGINFIGURE{label="fig:flagrect1" caption="Flagging a Rectangular Region."}%
%ENDFIGURE%
Click
Adjust and open the
Flagging Options dropdown in the
Data Options window. Click the
Polarizations
checkbox under
Flag/Unflag All...:
%BEGINFIGURE{label="fig:flagopts" caption="Flagging Options."}%
%ENDFIGURE%
Now create another flagging rectangle with
RectReg as shown (then double-click it):
%BEGINFIGURE{label="fig:flagrect2" caption="Flagging All Polarizations."}%
%ENDFIGURE%
Cycle through the various polarization data planes by clicking
FwdStep on the animator repeatedly. Though both flagged rectangles should show on plane 0, only the right rectangle should show on planes 1, 2 and 3 (plane 3 shown below):
%BEGINFIGURE{label="fig:flagrect3" caption="Flagging All Polarizations."}%
%ENDFIGURE%
Return to polarization 0 by clicking
ToStart (or
FwdStep).
Assign the
Crosshair mouse tool to the [left] mouse button by clicking on its toolbutton. (Optional: in the illustration below, the other toolbuttons were "unassigned" by left-clicking their toolbutton
before clicking the crosshair):
%BEGINFIGURE{label="fig:selcrosshair" caption="Crosshair Tool Selected for Use on Left Mouse button."}%
%ENDFIGURE%
Back in
Data Options /
Flag/Unflag All..., check
times
as well as
polarizations
.
[Left-]click on several data columns on display. (Note that the crosshair flags immediately, without double-click. You can also drag with it). Depending on the columns you clicked, the display should look something like this:
%BEGINFIGURE{label="fig:timelines" caption="Flagging All Times for Selected Baselines."}%
%ENDFIGURE%
Now, within the flagging options, click
Undo One a few times. Your unsaved edits should disappear one at a time (in reverse of the order in which you created them).
Press
Undo All and all the rest of the edits we made (but didn't save) should disappear.
Uncheck
Times
under
Flag/Unglag All....
Select the
RectReg mouse tool again and use it to draw a rectangle approximating the one shown below, double-clicking inside it to confirm the edit.
Under
Flagging Options press
Save Edits. The rectangle should turn the dark-blue 'saved' color:
%BEGINFIGURE{label="fig:flagrect4" caption="New Edit Saved."}%
%ENDFIGURE%
Press
Undo All Under
Flagging Options; This should have
no effect on the newly saved flagged region. We will now manually reverse this edit instead:
Select
Unflag for the option
Should new edits flag or unflag?.
With
RectReg, draw a rectangle just surrounding our last edit, as shown below:
%BEGINFIGURE{label="fig:flagrect5" caption="Selecting a Region to 'Unflag'."}%
%ENDFIGURE%
Double-click inside the rectangle. Flags should be erased from the region.
Press
Save Edits to save your reversal of these flags to the MS on disk.
Return the option
Should new edits flag or unflag? to
Flag.
2. Flagging an Entire Antenna. Flagging Unselected Fields.
Check
all the boxes under
Flag/Unflag All... except baselines
.
Set
Flag/Unflag Entire Antenna? to
Yes
.
Using
RectReg sweep out a rectangle similar to the one shown below. Be sure the rectangle lies within the 'bar' of data where tracking identifies the first antenna as antenna 9 (i.e., the baseline section of the tracking display looks like
9-## (b ###)
):
%BEGINFIGURE{label="fig:flagant1" caption="Selecting an Antenna to flag."}%
%ENDFIGURE%
Double-click within the rectangle, then press the
UnZoom toolbutton. The display should look like this:
%BEGINFIGURE{label="fig:flagant2" caption="All Baselines Which Include Antenna 9 Flagged."}%
%ENDFIGURE%
Press
Undo All to erase this edit again.
In the Data Options window within the
MS and Visibility Selection section, set
Field IDs to
[1]
.
Press
ZoomIn twice.
Sweep out a rectangular region within the 'Antenna-9 bar' (as shown below), then double-click to confirm the edit.
%BEGINFIGURE{label="fig:entireMS1" caption="Flagging Antenna 9, all fields."}%
%ENDFIGURE%
Press
Save Edits.
Switch the
Use Entire MS When Saving Edits? option (right above
Save Edits) to
No.
Sweep out a similar rectangle within the 'Antenna-7 bar' as shown below, and double-click inside:
%BEGINFIGURE{label="fig:entireMS2" caption="Flagging Antenna 7, Selected Field Only."}%
%ENDFIGURE%
Again press
Save Edits.
Return the
Field IDs option to
Original (via its wrench icon).
The display should look like this:
%BEGINFIGURE{label="fig:entireMS3" caption="Antenna 7 (Field 1), Antenna 9 (All Fields) Flagged."}%
%ENDFIGURE%
3. RMS Displays.
Under
MS and Visibility Selection set
Visibility Component to
Phase RMS.
Set
Scaling power cycles back to
0
.
You should see that the source fields that had low Amplitude (fields 6 and 7) are now brightest (higher phase uncertainty):
%BEGINFIGURE{label="fig:phaserms" caption="Phase RMS Display."}%
%ENDFIGURE%
Now set
Visibility Component to
Amp RMS. (As you make this change, the
Data maximum entry within
Basic Settings should change itself from about 121.333 to about 0.0241697).
Slowly move the
Moving Average Size slider until it is all the way to the right, then sweep the slider left and right a few times. You should notice the display seeming to get 'blurrier' as the slider moves to the right. When the slider is at
15
, the display should look about like this:
%BEGINFIGURE{label="fig:amprms" caption="Amplitude RMS Display -- Large Moving Average Size."}%
%ENDFIGURE%
4. Single Dish Display.
On the display panel select
Close ->
Close continuum.ms
.
Press
Open and in
Load Data select
sglDish.ms
and
Raster Image.
Within
Display Options open the
Display Axes section. You should see
Feed as the bottom selection (rather than
Baseline).
Change
Animation Axis to
Spectral Window.
Press
Play on the animator. The display should cycle through its 5 spectral windows.
Press
ToEnd on the animator. The last spectral window (4) should look like this:
%BEGINFIGURE{label="fig:sgldish" caption="Single Dish MS Display."}%
%ENDFIGURE%
5. Fringes 'R Us.
Everyone talks about fringes. To actually see some:
Close ->
Close sglDish.ms
.
Press
Open. In
Load Data select
spectral.ms
and
Raster Image.
In
Data Options under
MS and Visibility Selection set
Visibility Component to
Phase.
Under
Display Axes set
X Axis to
Channel.
Under
Basic Settings set
Colormap to
Smooth 1.
On the display panel press
Panel Options (the wrench icon with a
'P').
In the Panel Options window (or 'Viewer Canvas Manager') set
Background Color to
White.
In the Panel Options under
Margins set
Left margin to
8
and
Right margin to
3
.
Under
Number of panels set
Number of panels in x to
4
.
Press
Play on the animator. Voila: fringes. Press
Stop and set the frame number to
96
. The display should look about like this:
%BEGINFIGURE{label="fig:fringes" caption="Channel vs. Time display of Visibility Phase."}%
%ENDFIGURE%
6. Baseline length sort.
In the Panel Options window (or 'Viewer Canvas Manager') set
Background Color back to
Black. Also set
Number of panels in x back to
4
.
In
Data Options ->
MS and Visibility Selection set
Visibility Component back to
Amplitude.
Under
Display Axes set
X Axis back to
Baseline, and set
Baseline Sort to
Baseline Length. Notice that the X axis is now labelled with baseline lengths in meters.
Press
Play on the animator. Notice that the 'upward drift' is generally faster on longer baselines than on shorter ones. Press
Stop and set the frame number to
17
. The display should look about like this:
%BEGINFIGURE{label="fig:bslen" caption="Baseline Axis in Baseline Length Order."}%
%ENDFIGURE%
The longer baselines (as well as the later times) should show a tendency toward lower data values.
End of test. You can exit the viewer by closing the display panel.
(Instructions for
Loading Test Data are
here).
(To return to
Image Testing go
here).
--
DavidKing - Jan 2008