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


next up previous contents index
Next: almati2ms - Constructor Up: alma - Module Previous: shadow - Function


almati2ms - Tool



Package alma
Module alma


Postscript file available

A tool for converting ALMA-TI format data to a measurement set

include "almati2ms.g"



Description
The almati2ms tool contains functions to convert data stored in the ALMA-TI external format into an AIPS++ MeasurementSet (MS). The ALMA-TI format is described in ALMA Computing Memo. No. 15 (Lucas and Glendenning 2001)

The almati2ms tool is most easily run using the global function almatifiller.

More fine-grained control can be achieved by creating an individual almati2ms tool and setting the functions on the tool directly. This may be more useful in some cases, especially scipring. The tool functions fall into the following categories:

1.
Create an almati2ms tool
2.
Set general filler options
3.
Select which data are to be filled
4.
Start the filler
5.
Remove the tool


Creating a almati2ms tool

The only way to create a almati2ms tool is to use the almati2ms constructor. Calling this function will start a precompiled executable, called almati2ms, usually running on your machine. This executable executes all the almati2ms functions. The almati2ms constructor requires specification of the output MS file name, the input ALMA-TI FITS file and a flag to indicate if the new FITS data are to be appended to or overwrite an existing MS.


Set general filler options

The general filler options are specified using the function setoptions. These parameters control whether the output MS data are to be written in compressed or uncompressed mode and whether the sub-band data are to be combined per sideband into a common spectral window.


Select which data are to be filled

The select function is provided to allow selection of a subset of the input ALMA-TI data. At present the options are provided to select an observing mode (as stored in the ALMA-TI DATAPAR table) and which particular set of channel-zero data are to be filled.


Start the filler

Once an almati2ms tool has been created and the selection and general filler options set, the data can be filled by running the fill function.


Removing the tool

When you have finished with the almati2ms you should shut down the process, using the done function. Once a tool is shut down it can no longer be used. This also closes the output measurement set.



Example
The following example shows the minimum necessary to run the almati2ms tool.

The first line makes all the definitions for this tool available to the user. The second line calls the constructor and specifies the input and output files. The third sets a general option of no compression of the output file. The fourth states that only observing mode CORR and the time-averaged channel-zero continuum data should be filled. The fifth line starts the copying process and the sixth line closes the tool.

    include 'almati2ms.g'                                              #1
    a := almati2ms(msfile='output.ms', fitsin='ALMATI.fits', append=F) #2
    a.setoptions(compress=F)                                           #3
    a.select(obsmode='CORR', chanzero='TIME_AVG')                      #4
    a.fill()                                                           #5
    a.done()                                                           #6

This example could also have been achieved direclty using the almatifiller global function. This global function will execute all almati2ms tool functions in the sequence indicated above and, in addition, allows multiple input ALMA-TI files to be specified using a directory name and file modifier pattern. This is illustrated below:

    include 'almati2ms.g'                                              #1
    almatifiller(msfile='output.ms', fitsdir='.', pattern='ALMATI*",
                 append=F, compress=F, obsmode='CORR', 
                 chanzero='TIME_AVG', dophcor=F)                                  #2

Constructors
almati2ms Construct an almati2ms tool.
Functions
select Input data selection
setoptions Set general filler options




next up previous contents index
Next: almati2ms - Constructor Up: alma - Module Previous: shadow - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01