Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | alma | |
Module | alma |
include "almati2ms.g"
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:
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.
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
almati2ms | Construct an almati2ms tool. |
select | Input data selection |
setoptions | Set general filler options |