casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes
partitionhelper.convertToMMS Class Reference

List of all members.

Public Member Functions

def __init__
def getMSlist
def isItMS
def getFileslist
def runPartition
def usage

Public Attributes

 inpdir
 outdir
 mmsdir
 cleanup

Detailed Description

Definition at line 13 of file partitionhelper.py.


Constructor & Destructor Documentation

def partitionhelper.convertToMMS.__init__ (   self,
  inpdir = None,
  mmsdir = None,
  createmslink = False,
  cleanup = False 
)
Run the partition task to create MMSs from a directory with MSs

Definition at line 18 of file partitionhelper.py.


Member Function Documentation

def partitionhelper.convertToMMS.getFileslist (   self,
  files 
)
Get a list of non-MS files from a directory.
   files -> a tuple that is returned by the following call:
   files = os.walk(self.inpdir,followlinks=True).next() 
   
   It will return files and directories that are not MSs. It will skip
   files that start with .

Definition at line 183 of file partitionhelper.py.

References partitionhelper.convertToMMS.isItMS().

def partitionhelper.convertToMMS.getMSlist (   self,
  files 
)
Get a list of MSs from a directory.
   files -> a tuple that is returned by the following call:
   files = os.walk(self.inpdir,followlinks=True).next() 
   
   It will test if a directory is an MS and will only return
   true MSs, that have Type:Measurement Set in table.info. It will skip
   directories that start with . and those that do not end with
   extension .ms.

Definition at line 114 of file partitionhelper.py.

References partitionhelper.convertToMMS.isItMS().

def partitionhelper.convertToMMS.isItMS (   self,
  dir 
)
Check the type of a directory.
   dir  --> full path of a directory.
Returns 1 for an MS, 2 for a cal table and 3 for a MMS.
If 0 is returned, it means any other type or an error.

Definition at line 146 of file partitionhelper.py.

Referenced by partitionhelper.convertToMMS.getFileslist(), and partitionhelper.convertToMMS.getMSlist().

def partitionhelper.convertToMMS.runPartition (   self,
  ms,
  mmsdir,
  createlink 
)
Run partition with default values to create an MMS.
   ms         --> full pathname of the MS
   mmsdir     --> directory to save the MMS to
   createlink --> when True, it will create a symbolic link to the
         just created MMS in the same directory with extension .ms        

Definition at line 227 of file partitionhelper.py.

References casa_in_py.default(), and partitionhelper.convertToMMS.mmsdir.

Definition at line 279 of file partitionhelper.py.


Member Data Documentation

Definition at line 23 of file partitionhelper.py.

Definition at line 26 of file partitionhelper.py.

Referenced by partitionhelper.convertToMMS.runPartition().

Definition at line 24 of file partitionhelper.py.


The documentation for this class was generated from the following file: