casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
spectralline.py
Go to the documentation of this file.
00001 # This file was automatically generated by SWIG (http://www.swig.org).
00002 # Version 2.0.5
00003 #
00004 # Do not make changes to this file unless you know what you are doing--modify
00005 # the SWIG interface file instead.
00006 
00007 
00008 
00009 from sys import version_info
00010 if version_info >= (2,6,0):
00011     def swig_import_helper():
00012         from os.path import dirname
00013         import imp
00014         fp = None
00015         try:
00016             fp, pathname, description = imp.find_module('_spectralline', [dirname(__file__)])
00017         except ImportError:
00018             import _spectralline
00019             return _spectralline
00020         if fp is not None:
00021             try:
00022                 _mod = imp.load_module('_spectralline', fp, pathname, description)
00023             finally:
00024                 fp.close()
00025             return _mod
00026     _spectralline = swig_import_helper()
00027     del swig_import_helper
00028 else:
00029     import _spectralline
00030 del version_info
00031 try:
00032     _swig_property = property
00033 except NameError:
00034     pass # Python < 2.2 doesn't have 'property'.
00035 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
00036     if (name == "thisown"): return self.this.own(value)
00037     if (name == "this"):
00038         if type(value).__name__ == 'SwigPyObject':
00039             self.__dict__[name] = value
00040             return
00041     method = class_type.__swig_setmethods__.get(name,None)
00042     if method: return method(self,value)
00043     if (not static):
00044         self.__dict__[name] = value
00045     else:
00046         raise AttributeError("You cannot add attributes to %s" % self)
00047 
00048 def _swig_setattr(self,class_type,name,value):
00049     return _swig_setattr_nondynamic(self,class_type,name,value,0)
00050 
00051 def _swig_getattr(self,class_type,name):
00052     if (name == "thisown"): return self.this.own()
00053     method = class_type.__swig_getmethods__.get(name,None)
00054     if method: return method(self)
00055     raise AttributeError(name)
00056 
00057 def _swig_repr(self):
00058     try: strthis = "proxy of " + self.this.__repr__()
00059     except: strthis = ""
00060     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00061 
00062 try:
00063     _object = object
00064     _newclass = 1
00065 except AttributeError:
00066     class _object : pass
00067     _newclass = 0
00068 
00069 
00070 class spectralline(_object):
00071     """Proxy of C++ casac::spectralline class"""
00072     __swig_setmethods__ = {}
00073     __setattr__ = lambda self, name, value: _swig_setattr(self, spectralline, name, value)
00074     __swig_getmethods__ = {}
00075     __getattr__ = lambda self, name: _swig_getattr(self, spectralline, name)
00076     __repr__ = _swig_repr
00077     def __init__(self): 
00078         """__init__(self) -> spectralline"""
00079         this = _spectralline.new_spectralline()
00080         try: self.this.append(this)
00081         except: self.this = this
00082     __swig_destroy__ = _spectralline.delete_spectralline
00083     __del__ = lambda self : None;
00084     def splattotable(self, *args, **kwargs):
00085         """
00086         splattotable(self, filenames=std::vector< string >(1, ""), table=string("")) -> spectralline
00087 
00088         Summary
00089                 Convert a downloaded Splatalogue spectral line list to a casa table.
00090 
00091         Input Parameters:
00092                 filenames        Files containing Splatalogue dumps 
00093                 table            Output table name. 
00094                 
00095         --------------------------------------------------------------------------------
00096                       
00097         """
00098         return _spectralline.spectralline_splattotable(self, *args, **kwargs)
00099 
00100     def open(self, *args, **kwargs):
00101         """
00102         open(self, table=string("")) -> bool
00103 
00104         Summary
00105                 Open a spectralline tool using the specified table.
00106 
00107         Input Parameters:
00108                 table            CASA table containing Splatalogue data. 
00109                 
00110         --------------------------------------------------------------------------------
00111                       
00112         """
00113         return _spectralline.spectralline_open(self, *args, **kwargs)
00114 
00115     def close(self):
00116         """
00117         close(self) -> bool
00118 
00119         Summary
00120                 close the spectralline tool
00121         --------------------------------------------------------------------------------
00122                       
00123         """
00124         return _spectralline.spectralline_close(self)
00125 
00126     def done(self):
00127         """
00128         done(self) -> bool
00129 
00130         Summary
00131                 End the spectralline tool
00132         --------------------------------------------------------------------------------
00133                       
00134         """
00135         return _spectralline.spectralline_done(self)
00136 
00137     def search(self, *args, **kwargs):
00138         """
00139         search(self, outfile=string(""), freqrange=initialize_vector(1, (double)0), species=initialize_variant(""), 
00140             reconly=False, chemnames=initialize_variant(""), qns=std::vector< string >(1, ""), 
00141             intensity=initialize_vector(1, (double)-1), smu2=initialize_vector(1, (double)-1), 
00142             loga=initialize_vector(1, (double)-1), el=initialize_vector(1, (double)-1), 
00143             eu=initialize_vector(1, (double)-1), rrlinclude=True, 
00144             rrlonly=False, verbose=True, logfile=string(""), append=False) -> spectralline
00145 
00146         Summary
00147                 Search a Splatalogue table that has been converted to a casa table
00148 
00149         Input Parameters:
00150                 outfile          Results table name. Blank means do not write the table to disk. 
00151                 freqrange        Frequency range in GHz. 0 
00152                 species          Species to search for. 
00153                 reconly          List only NRAO recommended frequencies. false 
00154                 chemnames        Chemical names to search for. 
00155                 qns              Resolved quantum numbers to search for. 
00156                 intensity        CDMS/JPL intensity range. -1 -> do not use an intensity range. -1 
00157                 smu2             S*mu*mu range in Debye**2. -1 -> do not use an S*mu*mu range. -1 
00158                 loga             log(A) (Einstein coefficient) range. -1 -> do not use a loga range. -1 
00159                 el               Lower energy state range in Kelvin. -1 -> do not use an el range. -1 
00160                 eu               Upper energy state range in Kelvin. -1 -> do not use an eu range. -1 
00161                 rrlinclude       Include RRLs in the result set? true 
00162                 rrlonly          Include only RRLs in the result set? false 
00163                 verbose          List result set to logger (and optionally logfile)? true 
00164                 logfile          List result set to this logfile (only used if verbose=true). 
00165                 append           If true, append to logfile if it already exists, if false overwrite logfile it it exists. Only used if verbose=true and logfile not blank. false 
00166                 
00167         --------------------------------------------------------------------------------
00168                       
00169         """
00170         return _spectralline.spectralline_search(self, *args, **kwargs)
00171 
00172     def list(self):
00173         """
00174         list(self)
00175 
00176         Summary
00177                 List the spectral lines in the associated table to the logger.
00178         --------------------------------------------------------------------------------
00179                       
00180         """
00181         return _spectralline.spectralline_list(self)
00182 
00183     def torecord(self):
00184         """
00185         torecord(self) -> record *
00186 
00187         Summary
00188                 Return data on the spectral lines in the table as a record.
00189         --------------------------------------------------------------------------------
00190                       
00191         """
00192         return _spectralline.spectralline_torecord(self)
00193 
00194     def species(self, *args, **kwargs):
00195         """
00196         species(self, verbose=False, logfile=string(""), append=False) -> record *
00197 
00198         Summary
00199                 List the unique species in the associated table to the logger.
00200 
00201         Input Parameters:
00202                 verbose          List result set to logger (and optionally logfile)? false 
00203                 logfile          List result set to this logfile (only used if verbose=true). 
00204                 append           If true, append to logfile if it already exists, if false overwrite logfile it it exists. Only used if show=true and logfile not blank. false 
00205                 
00206         --------------------------------------------------------------------------------
00207                       
00208         """
00209         return _spectralline.spectralline_species(self, *args, **kwargs)
00210 
00211     def chemnames(self, *args, **kwargs):
00212         """
00213         chemnames(self, verbose=False, logfile=string(""), append=False) -> record *
00214 
00215         Summary
00216                 List the unique chemical names in the associated table to the logger.
00217 
00218         Input Parameters:
00219                 verbose          List result set to logger (and optionally logfile)? false 
00220                 logfile          List result set to this logfile (only used if verbose=true). 
00221                 append           If true, append to logfile if it already exists, if false overwrite logfile it it exists. Only used if show=true and logfile not blank. false 
00222                 
00223         --------------------------------------------------------------------------------
00224                       
00225         """
00226         return _spectralline.spectralline_chemnames(self, *args, **kwargs)
00227 
00228     def nrows(self):
00229         """
00230         nrows(self) -> int
00231 
00232         Summary
00233                 Get the number of rows in the associated spectral line table.
00234         --------------------------------------------------------------------------------
00235                       
00236         """
00237         return _spectralline.spectralline_nrows(self)
00238 
00239 spectralline_swigregister = _spectralline.spectralline_swigregister
00240 spectralline_swigregister(spectralline)
00241 
00242 # This file is compatible with both classic and new-style classes.
00243 
00244