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


next up previous contents
Next: Copyright Up: Volume 3 - Telescope Specific Processing Previous: 6. Arecibo Observatory Spectral Line Reduction with DISH

Subsections



7. BIMA Data Reduction

D.M. Mehringer and The LAUGH Group7.1


7.1 Introduction

David Mehringer, Ray Plante, and Anuj Sarma

This version of the BIMA AIPS++ Cookbook is a much abridged version of the full version which can be found at http://monet.ncsa.uiuc.edu/aips++/forBIMA/cook/cook.html. The abridged version essentially describes only BIMA-specific issues in AIPS++ while the full version has useful chapters on using AIPS++ in general. If you discover errors or have suggestions, please email them to dmehring@astro.uiuc.edu.

7.1.1 Starting AIPS++

To start AIPS++, issue the following commands if you are using c shell:

> source /appl/aips++/stable/aipsinit.sh
> aips++

or, if you are using bash shell:

> . /appl/aips++/stable/aipsinit.sh
> aips++

7.1.2 Exiting AIPS++

There are two ways to exit from AIPS++:

7.2 Manipulating AIPS++ tools

Hélène. R. Dickel


7.2.1 How do I create a tool?

The Tool Manager window is used to create tools. Tools and global functions are organized first by Packages and then by Modules, as illustrated by the graphical lists that make up the Tool Manager. The mirfiller tool can be used to import Miriad visibility data into AIPS++.

In the BIMA Data Reduction section of the AIPS++ cookbook, we use a short hand for selecting tools and functions in the Tool Manager. It looks like this:

Package Module Tool   Constructor
bima mirfiller mirfiller \fbox{\tt Create} mirfiller
Don't understand this table? See § 7.2.1

Here's what it means:

\fbox{\parbox{0.7\textwidth}{
\small\begin{description}\vspace{-1.5\topsep}\item...
...as its value; that is, it creates a tool.\vspace{-1.5\topsep}\end{description}}}


1.
Under the Packages list, click on ``bima.''
2.
Under the Modules list, click on ``mirfiller.''
3.
Under the Tools list, click on ``mirfiller.''
4.
Hit the ``Create'' button below the Tools list. This will cause the Tool Manager to morph into a new GUI for constructing a mirfiller tool.

Now that you have the constructor interface up, you need to enter values for its parameters. Here are two most important parameters you need to provide and what they mean:

Constructor: mirfiller  
Parameter Sample Value What it means
toolname mymirfiller The name by which you want to refer to this tool; this is helpful when you want to refer to the tool from the Glish command line or if you have more than one tool of the same type.
mirfile 3c273 The name of the Miriad dataset.

In the BIMA Data Reduction section of the AIPS++ cookbook, a table like the one above is used to summarize the inputs you need to give to a function. Usually, only the most important parameters are listed; all others can be left to their default.


% latex2html id marker 8001
\fbox{\parbox{0.9\textwidth}{
\small\begin{descripti...
...ght of the input (see
\S\ \ref{fwrench}).\vspace{-1.5\topsep}\end{description}}}

Most likely, the ``toolname'' parameter will already be set to ``mymirfiller;'' however, if you want to change it, move your cursor over the ``toolname'' input, erase its contents and type in the new value.

% latex2html id marker 8007
\fbox{\parbox{\textwidth}{
\small {\bf Tips for ente...
...he function is run, it will choose an appropriate
default value.
\end{itemize}}}

When all the parameters have been set, you can execute the constructor and create the mirfiller tool by clicking the green button labeled ``Create.''

When the constructor finishes its work, the GUI will morph again to show the interface to the tool's functions.


\fbox{\parbox{0.7\textwidth}{
\small\begin{description}\vspace{-1.5\topsep}\item...
...lue} (e.g., {\bf mirfiller:mymirfiller}).\vspace{-1.5\topsep}\end{description}}}


7.2.2 How do I get rid of a tool?

You can shut down a tool from its function view (where the functions appear in a list on the right; if you do not see this, press the ``mirfiller:mymirfiller" button along the top of the Tool Manager.

Now press the ``Done" button at the bottom, right hand corner of the window. The Tool Manager will morph back into its tool selection view. The ``mirfiller:mymirfiller" button is now gone.

Note that the ``Dismiss" button does not shut down the tool. It simply returns to the tool selection view. The ``mirfiller:mymirfiller" button would remain.

7.3 Importing BIMA Data in AIPS++

Ray Plante


7.3.1 How do I import my Miriad uv-data into AIPS++

Here's a summary of how to import your data it using the GUI:



7.3.1.1 How do I do the same thing in Glish?

If you have the scripter running, you can just look the scripter window. You'll see exactly what was run by the GUI.

Note that AIPS++ will usually write Glish commands to the scripter in their most verbose form. Here's a more compact form:

  include 'mirfiller.g'
  mymirfiller := mirfiller("3c273");
  mymirfiller.fill("3c273.ms", verbose=T);
  mymirfiller.done();

Parameters left to their default values do not have to be included. Plus, if you give the parameter values in the order that they appear in the GUI (or the documentation), you don't have to give the parameter names.


7.3.2 How do I import my FITS uv-data into AIPS++

Loading of FITS uv-data into AIPS++ can be done using the ms tool via its fitstoms constructor. Here a summary of how to import FITS data using the GUI:



The glish equivalent of the above procedure is the following:

   include 'ms.g';
   myms := fitstoms(msfile="3c273.ms", fitsfile="3C273.FITS");
   myms.done();


7.4 Inspecting UV data

David Fong


7.4.1 Overview

This section describes how one can inspect UV data by means of the following questions:

7.4.2
How do I plot the uv-data using the imager tool?
7.4.3
How do I examine the uv-data using msplot?
7.4.3
How do I list the spectral parameters of the uv-data?


7.4.2 How do I plot the uv-data using the imager tool?

The imager tool contains the functions for imaging. If you wish to have a quick look at the uv-data before imaging, then follow these steps. If you wish examine the uv-data in greater detail, then use msplot (see § 7.4.3).


7.4.3 How do I examine the uv-data using msplot?

msplotprovides more selection options for plotting uv-data. The GUI-based tool can make plots, displays or listings of various parts of an MS (see Reference manual: general.ms.msplot for a full description).


Example 1: A common plot to make is X vs Y, where the X and Y axes can be time, UV-distance, amplitude, phase, etc.



Example 2: Another common plot to create is the UV-coverage.



To individually plot the UV-coverage for each baseline:



\fbox{\parbox{0.9\textwidth}{
\small\begin{description}\vspace{-1.5\topsep}\item...
... flagged
\emph{uv}-data points are shown.\vspace{-1.5\topsep}\end{description}}}



7.4.3.1 How do I list the spectral parameters of the uv-data?


7.5 Editing UV data

Anuj Sarma


7.5.1 Overview

This section will describe how to flag/edit your uv-data.

7.5.2
How do I flag uv-data?

7.5.3
How do I carry out all the above steps to flag uv-data using glish?

7.5.4
How do I re-generate the wideband data after flagging?



7.5.2 How do I flag uv-data?

Flagging and editing of the uv-data can be done using the autoflag tool.

To use autoflag, go to the `Manager' view in the Tool Manager GUI and make the following selections:

The data for `bllac.ms' are now flagged.


% latex2html id marker 8661
\fbox{\parbox{0.9\textwidth}{
\small\begin{descripti...
... This is described
in \S\ \ref{wbrecalc}.\vspace{-1.5\topsep}\end{description}}}



7.5.3 How do I carry out all the above steps to flag uv-data using glish?

All the steps described in the last section can be done in glish.


% latex2html id marker 8673
\fbox{\parbox{0.7\textwidth}{
\small\begin{descripti...
...ipter output to
the glish commands below.\vspace{-1.5\topsep}\end{description}}}

Follow the steps below to flag your data using glish. The procedure followed is identical to that in the last section.



Two cautionary notes: Do not flag the target source data until after the calibration has been done on the phase calibrator and the calibration tables have been copied over to the target source (see Chapter 7.6 on page [*]). Otherwise, the bimacalibrator tool will exit with an error. This is due to a bug in the AIPS++ code for heterogenous spectral windows, and is under investigation.

If you are flagging a calibrator, make sure you run the reavg routine in bimams before you calibrate, so that the wideband data for the calibrator are recalculated after the flags have been applied. This procedure is described in § 7.5.4 below.


7.5.4 How do I re-generate the wideband data after flagging?

After flagging the calibrator data, you will have to re-generate the wideband data, in order to carry over the flags to the sideband averages. To do this, use the reavg routine in the bimams tool.

To use reavg go to the 'Manager' view in the Tool Manager GUI and make the following selections:

The above procedure will re-generate the wideband data. You are now ready to calibrate the data.


The above procedure to re-generate the wideband data can be carried out in glish using the following:

  include 'bimams.g';
  mybimams:=bimams('bllac.ms');
  mybimams.reavg();
  mybimams.done();


7.6 Calibration of uv data

Anuj Sarma


7.6.1 Overview

This section will answer the following questions concerning the calibration of your uv data:

7.6.2
How do I calibrate the data?
7.6.3
How do I carry out the above steps to calibrate the data using glish?


[A work in progress. Future updates will include interactive editing of gain tables, self-calibration, and bandpass correction.]


7.6.2 How do I calibrate the data?

Calibration of BIMA data is done using the bimacalibrater tool. Before using this tool, make sure that the following steps have been completed.

Now, you are ready to start calibrating the data. Below, we describe the steps to calibrate BIMA data based on observations of a phase calibrator. In the example below, the phase calibrator is named ``bllac'' (hence the AIPS++ measurement set is bllac.ms) and the target source is named ``cepa.''


Go the the `Manager' view in the Tool Manager and make the following selections.

The calibration is now done. Remember, you must flag the target source data after calibration and before imaging (meaning now, see Chapter 7.5) -- this will continue to be the procedure until the bug in AIPS++ is removed.


7.6.3 How do I carry out the above steps to calibrate the uv-data using glish?

All the steps described in the last section can be done in glish. First, make sure you are in the glish environment (which is started by typing ``glish'' at the command line prompt) and that you have loaded the data into AIPS++, flagged only the phase calibrator data, and regenerated the wideband data for the flagged phase calibrator, as described in the last section.


next up previous contents
Next: Copyright Up: Volume 3 - Telescope Specific Processing Previous: 6. Arecibo Observatory Spectral Line Reduction with DISH   Contents