|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
ms.fromfitsidi - Function
1.3.1 Create a measurement set from a fits-idi file
Description
This function will convert a UVFITS file to a measurement set table and then
open the measurement set table. The newly created measurement set table will
continue to exist after the tool has been closed.
Setting the lock argument to True will permanently lock the table preventing other processes from writing to the measurement set. Unless you expect this to happen, and want to prevent it, you should leave the lock argument at the default value which implies auto-locking.
Note that the variety of fits files that fromfits is able to interpret correctly is limited mostly to files similar to those produced by classic AIPS. In particular, it understands only binary table extensions for the antenna (AN), frequency (FQ) and source (SU) information and ignores other extensions.
This function returns True if it successfully attachs the ms tool to a newly created Measurement Set or False if something went wrong, like an error in a file name.
Arguments
Inputs |
| ||
msfile |
| Filename for the newly created measurement set
| |
| allowed: | string |
|
| Default: |
| |
fitsfile |
| fits-idi file to read
| |
| allowed: | string |
|
| Default: |
| |
nomodify |
| open for read access only
| |
| allowed: | bool |
|
| Default: | true |
|
lock |
| lock the table for exclusive use
| |
| allowed: | bool |
|
| Default: | false |
|
obstype |
| specify the observation type: 0=standard, 1=fastmosaic,
requiring small tiles in the measurement set
| |
| allowed: | int |
|
| Default: | 0 |
|
bool
Example
ms.fromfits("3C273XC1.MS", "3C273XC1.fits")
__________________________________________________________________
More information about CASA may be found at the
CASA web page
Copyright © 2016 Associated Universities Inc., Washington, D.C.
This code is available under the terms of the GNU General Public Lincense
Home |
Contact Us |
Directories |
Site Map |
Help |
Privacy Policy |
Search