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."}% toolbuttons.jpg%ENDFIGURE%

Open (raise Load Data window)
Adjust (raise Data Options window)
Close Data
New Panel (creates another display panel window)
Panel Options (raise Panel Display Options window)
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

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."}% continuum.jpg%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."}% flagrect0.jpg%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."}% flagrect1.jpg%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."}% flagopts.jpg%ENDFIGURE%

Now create another flagging rectangle with RectReg as shown (then double-click it):

%BEGINFIGURE{label="fig:flagrect2" caption="Flagging All Polarizations."}% flagrect2.jpg%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."}% flagrect3.jpg%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."}% selcrosshair.jpg%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."}% timelines.jpg%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."}% flagrect4.jpg%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'."}% flagrect5.jpg%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."}% flagant1.jpg%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."}% flagant2.jpg%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."}% entireMS1.jpg%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."}% entireMS2.jpg%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."}% entireMS3.jpg%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."}% phaserms.jpg%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."}% amprms.jpg%ENDFIGURE%

4. Single Dish Display.

On the display panel select Close -> Close

Press Open and in Load Data select 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."}% sgldish.jpg%ENDFIGURE%

5. Fringes 'R Us.

Everyone talks about fringes. To actually see some:

Close -> Close

Press Open. In Load Data select 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."}% fringes.jpg%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."}% bslen.jpg%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
Topic attachments
I Attachment Action Size Date Who Comment
amprms.jpgjpg amprms.jpg manage 94 K 2008-01-23 - 11:45 UnknownUser  
bslen.jpgjpg bslen.jpg manage 96 K 2008-06-24 - 11:59 UnknownUser  
bslrows.jpgjpg bslrows.jpg manage 70 K 2008-01-22 - 12:19 UnknownUser  
continuum.jpgjpg continuum.jpg manage 94 K 2008-01-17 - 18:50 UnknownUser  
entireMS1.jpgjpg entireMS1.jpg manage 73 K 2008-01-22 - 19:24 UnknownUser  
entireMS2.jpgjpg entireMS2.jpg manage 71 K 2008-01-22 - 19:24 UnknownUser  
entireMS3.jpgjpg entireMS3.jpg manage 93 K 2008-01-22 - 19:25 UnknownUser  
flagant1.jpgjpg flagant1.jpg manage 68 K 2008-01-22 - 18:47 UnknownUser  
flagant2.jpgjpg flagant2.jpg manage 94 K 2008-01-22 - 18:48 UnknownUser  
flagopts.jpgjpg flagopts.jpg manage 24 K 2008-01-22 - 12:19 UnknownUser  
flagrect0.jpgjpg flagrect0.jpg manage 69 K 2008-01-18 - 19:28 UnknownUser  
flagrect1.jpgjpg flagrect1.jpg manage 68 K 2008-01-22 - 12:18 UnknownUser  
flagrect2.jpgjpg flagrect2.jpg manage 69 K 2008-01-22 - 12:18 UnknownUser  
flagrect3.jpgjpg flagrect3.jpg manage 68 K 2008-01-22 - 13:21 UnknownUser  
flagrect4.jpgjpg flagrect4.jpg manage 68 K 2008-01-22 - 16:59 UnknownUser  
flagrect5.jpgjpg flagrect5.jpg manage 68 K 2008-01-22 - 17:00 UnknownUser  
fringes.jpgjpg fringes.jpg manage 81 K 2008-01-23 - 12:57 UnknownUser  
phaserms.jpgjpg phaserms.jpg manage 85 K 2008-01-23 - 11:45 UnknownUser  
selcrosshair.jpgjpg selcrosshair.jpg manage 2 K 2008-01-22 - 13:39 UnknownUser  
sgldish.jpgjpg sgldish.jpg manage 59 K 2008-01-23 - 12:19 UnknownUser  
timelines.jpgjpg timelines.jpg manage 69 K 2008-01-22 - 12:20 UnknownUser  
toolbuttons.jpgjpg toolbuttons.jpg manage 3 K 2008-01-17 - 11:44 UnknownUser  
Topic revision: r14 - 2008-06-24, DavidKing
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback