casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
simulator.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('_simulator', [dirname(__file__)])
00017         except ImportError:
00018             import _simulator
00019             return _simulator
00020         if fp is not None:
00021             try:
00022                 _mod = imp.load_module('_simulator', fp, pathname, description)
00023             finally:
00024                 fp.close()
00025             return _mod
00026     _simulator = swig_import_helper()
00027     del swig_import_helper
00028 else:
00029     import _simulator
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 simulator(_object):
00071     """Proxy of C++ casac::simulator class"""
00072     __swig_setmethods__ = {}
00073     __setattr__ = lambda self, name, value: _swig_setattr(self, simulator, name, value)
00074     __swig_getmethods__ = {}
00075     __getattr__ = lambda self, name: _swig_getattr(self, simulator, name)
00076     __repr__ = _swig_repr
00077     def __init__(self): 
00078         """__init__(self) -> simulator"""
00079         this = _simulator.new_simulator()
00080         try: self.this.append(this)
00081         except: self.this = this
00082     __swig_destroy__ = _simulator.delete_simulator
00083     __del__ = lambda self : None;
00084     def open(self, *args, **kwargs):
00085         """
00086         open(self, ms=string("")) -> bool
00087 
00088         Summary
00089                 Construct a simulator tool and creating a new MeasurementSet
00090 
00091         Input Parameters:
00092                 ms               MeasurementSet to be created 
00093                 
00094         --------------------------------------------------------------------------------
00095                       
00096         """
00097         return _simulator.simulator_open(self, *args, **kwargs)
00098 
00099     def openfromms(self, *args, **kwargs):
00100         """
00101         openfromms(self, ms=string("")) -> bool
00102 
00103         Summary
00104                 Construct a simulator tool using an already existing  MS
00105 
00106         Input Parameters:
00107                 ms               MeasurementSet to be processed 'MS' 
00108                 
00109         --------------------------------------------------------------------------------
00110                       
00111         """
00112         return _simulator.simulator_openfromms(self, *args, **kwargs)
00113 
00114     def close(self):
00115         """
00116         close(self) -> bool
00117 
00118         Summary
00119                 Close the newsimulator tool
00120         --------------------------------------------------------------------------------
00121                       
00122         """
00123         return _simulator.simulator_close(self)
00124 
00125     def done(self):
00126         """
00127         done(self) -> bool
00128 
00129         Summary
00130                 Close the newsimulator tool
00131         --------------------------------------------------------------------------------
00132                       
00133         """
00134         return _simulator.simulator_done(self)
00135 
00136     def name(self):
00137         """
00138         name(self) -> string
00139 
00140         Summary
00141                 Provide the name of the attached MeasurementSet
00142         --------------------------------------------------------------------------------
00143                       
00144         """
00145         return _simulator.simulator_name(self)
00146 
00147     def summary(self):
00148         """
00149         summary(self) -> bool
00150 
00151         Summary
00152                 Summarize the current state
00153         --------------------------------------------------------------------------------
00154                       
00155         """
00156         return _simulator.simulator_summary(self)
00157 
00158     def type(self):
00159         """
00160         type(self) -> string
00161 
00162         Summary
00163                 Return the type of this tool
00164         --------------------------------------------------------------------------------
00165                       
00166         """
00167         return _simulator.simulator_type(self)
00168 
00169     def settimes(self, *args, **kwargs):
00170         """
00171         settimes(self, integrationtime=initialize_variant("10s"), usehourangle=True, referencetime=initialize_variant("50000.0d")) -> bool
00172 
00173         Summary
00174                 Set integration time, {em etc.}
00175 
00176         Input Parameters:
00177                 integrationtime  Integration time 10s 
00178                 usehourangle     Use starttime/stoptime as hour angles - else they are referenced to referencetime true 
00179                 referencetime    Reference time for starttime and stoptime. Epoch Measure . E.g me.epoch('UTC', '50000.0d') 50000.0d epoch measure 
00180                 
00181         --------------------------------------------------------------------------------
00182                       
00183         """
00184         return _simulator.simulator_settimes(self, *args, **kwargs)
00185 
00186     def observe(self, *args, **kwargs):
00187         """
00188         observe(self, sourcename=string(""), spwname=string(""), starttime=initialize_variant("0s"), stoptime=initialize_variant("3600s"), 
00189             add_observation=False, state_sig=True, 
00190             state_ref=False, state_cal=0.0, state_load=0.0, state_sub_scan=0, state_obs_mode=string("OBSERVE_TARGET.ON_SOURCE"), 
00191             observer=string("CASA simulator"), 
00192             project=string("CASA simulation")) -> bool
00193 
00194         Summary
00195                 Observe a given configuration
00196 
00197         Input Parameters:
00198                 sourcename       Name of source or field (must be specified) None 
00199                 spwname          Unique user-supplied name for this spectral window None 
00200                 starttime        Start time referenced to referenceepoch 0s 
00201                 stoptime         Stop time referenced to referenceepoch 3600s 
00202                 add_observation  Add a new line to the OBSERVATION subtable for this call false 
00203                 state_sig        a new line will be added to STATE if the following don't match true 
00204                 state_ref        false 
00205                 state_cal        0.0 
00206                 state_load       0.0 
00207                 state_sub_scan   0 
00208                 state_obs_mode   OBSERVE_TARGET.ON_SOURCE 
00209                 observer         CASA simulator 
00210                 project          CASA simulation 
00211                 
00212         --------------------------------------------------------------------------------
00213                       
00214         """
00215         return _simulator.simulator_observe(self, *args, **kwargs)
00216 
00217     def observemany(self, *args, **kwargs):
00218         """
00219         observemany(self, sourcenames=std::vector< string >(1, ""), spwname=string(""), starttimes=std::vector< string >(1, ""), 
00220             stoptimes=std::vector< string >(1, ""), directions=std::vector< string >(1, ""), 
00221             add_observation=False, state_sig=True, state_ref=False, 
00222             state_cal=0.0, state_load=0.0, state_sub_scan=0, state_obs_mode=string("OBSERVE_TARGET.ON_SOURCE"), 
00223             observer=string("CASA simulator"), project=string("CASA simulation")) -> bool
00224 
00225         Summary
00226                 Observe a given configuration
00227 
00228         Input Parameters:
00229                 sourcenames      Name of sources None 
00230                 spwname          Unique user-supplied name for this spectral window None 
00231                 starttimes       Start times referenced to referenceepoch 0s 
00232                 stoptimes        Stop time referenced to referenceepoch 3600s 
00233                 directions       
00234                 add_observation  Add a new line to the OBSERVATION subtable for this call false 
00235                 state_sig        a new line will be added to STATE if the following don't match true 
00236                 state_ref        false 
00237                 state_cal        0.0 
00238                 state_load       0.0 
00239                 state_sub_scan   0 
00240                 state_obs_mode   OBSERVE_TARGET.ON_SOURCE 
00241                 observer         CASA simulator 
00242                 project          CASA simulation 
00243                 
00244         --------------------------------------------------------------------------------
00245                       
00246         """
00247         return _simulator.simulator_observemany(self, *args, **kwargs)
00248 
00249     def setlimits(self, *args, **kwargs):
00250         """
00251         setlimits(self, shadowlimit=1e-6, elevationlimit=initialize_variant("10deg")) -> bool
00252 
00253         Summary
00254                 Set limits for observing
00255 
00256         Input Parameters:
00257                 shadowlimit      Maximum fraction of geometrically shadowed area before flagging occurs 1e-6 1e-6 
00258                 elevationlimit   Minimum elevation angle before flagging occurs 10deg 
00259                 
00260         --------------------------------------------------------------------------------
00261                       
00262         """
00263         return _simulator.simulator_setlimits(self, *args, **kwargs)
00264 
00265     def setauto(self, autocorrwt=0.0):
00266         """
00267         setauto(self, autocorrwt=0.0) -> bool
00268 
00269         Summary
00270                 Set autocorrelation weight
00271 
00272         Input Parameters:
00273                 autocorrwt       Weight to assign autocorrelations (0=none) 0.0 0.0 
00274                 
00275         --------------------------------------------------------------------------------
00276                       
00277         """
00278         return _simulator.simulator_setauto(self, autocorrwt)
00279 
00280     def setconfig(self, *args, **kwargs):
00281         """
00282         setconfig(self, telescopename=string("VLA"), x=initialize_vector(1, (double)0), y=initialize_vector(1, (double)0), 
00283             z=initialize_vector(1, (double)0), dishdiameter=initialize_vector(1, (double)0), 
00284             offset=initialize_vector(1, (double)0), mount=std::vector< string >(1, ""), 
00285             antname=std::vector< string >(1, ""), padname=std::vector< string >(1, ""), 
00286             coordsystem=string("global"), referencelocation=initialize_variant("ALMA")) -> bool
00287 
00288         Summary
00289                 Set the antenna configuration
00290 
00291         Input Parameters:
00292                 telescopename    Name of the telescope we are simulating (determines VP) VLA 'VLA' 
00293                 x                Vector of x values of all antennas [currently m] 0 [] 
00294                 y                Vector of y values of all antennas [currently m] 0 [] 
00295                 z                Vector of z values of all antennas [currently m] 0 [] 
00296                 dishdiameter     Vector of diameters of all antennas [currently m] 0 [] 
00297                 offset           Vector of offset of all antennas [currently m] 0 [] 
00298                 mount            Vector of mount types of all antennas (recognized mounts are 'ALT-AZ', 'EQUATORIAL', 'X-Y', 'ORBITING', 'BIZARRE' ALT-AZ [] 
00299                 antname          Vector of names of all antennas A [] 
00300                 padname          Vector of names of pads or stations P [] 
00301                 coordsystem      Coordinate system of antenna positions [x,y,z], possibilities are 'global', 'local' , 'longlat' global 'global' 
00302                 referencelocation        Reference location [required for local coords] Position Measure of Coordinates of array location. E.g me.position('ITRF', '30.5deg', -20.2deg', 6000km') or me.observatory('ALMA') ALMA position measure 
00303                 
00304         --------------------------------------------------------------------------------
00305                       
00306         """
00307         return _simulator.simulator_setconfig(self, *args, **kwargs)
00308 
00309     def setknownconfig(self, *args, **kwargs):
00310         """
00311         setknownconfig(self, arrayname=string("VLA")) -> bool
00312 
00313         Summary
00314                 Set the antenna configuration to a
00315             known array
00316 
00317         Input Parameters:
00318                 arrayname        Name of the telescope configurationwe are simulating VLA 'VLA' 
00319                 
00320         --------------------------------------------------------------------------------
00321                       
00322         """
00323         return _simulator.simulator_setknownconfig(self, *args, **kwargs)
00324 
00325     def setfeed(self, *args, **kwargs):
00326         """
00327         setfeed(self, mode=string(""), x=initialize_vector(1, (double)0), y=initialize_vector(1, (double)0), 
00328             pol=std::vector< string >(1, "")) -> bool
00329 
00330         Summary
00331                 Set the feed parameters
00332 
00333         Input Parameters:
00334                 mode             Mode for specifying feed parameters (currently, perfect only) 
00335                 x                Some very secretive feed array parameter x 0 
00336                 y                Some more very secretive feed array parameter y 0 
00337                 pol              Guess its the polarization of feed arrays... your guess is as good as mine....if you know better let us know please ! R 
00338                 
00339         --------------------------------------------------------------------------------
00340                       
00341         """
00342         return _simulator.simulator_setfeed(self, *args, **kwargs)
00343 
00344     def setfield(self, *args, **kwargs):
00345         """
00346         setfield(self, sourcename=string("SOURCE"), sourcedirection=initialize_variant(""), calcode=string(""), 
00347             distance=initialize_variant("0m")) -> bool
00348 
00349         Summary
00350                 Set one or more observed fields
00351 
00352         Input Parameters:
00353                 sourcename       Name of source or field (must be specified) SOURCE 'unknown' 
00354                 sourcedirection  Direction Measure of Coordinates of source to be observed. E.g me.direction('J2000', '30.5deg','-20.2deg'). 
00355                 calcode          Calibration code 'OBJ' 
00356                 distance         Distance to the object 0m 
00357                 
00358         --------------------------------------------------------------------------------
00359                       
00360         """
00361         return _simulator.simulator_setfield(self, *args, **kwargs)
00362 
00363     def setmosaicfield(self, *args, **kwargs):
00364         """
00365         setmosaicfield(self, sourcename=string("SOURCE"), calcode=string(""), fieldcenter=initialize_variant(""), 
00366             xmosp=1, ymosp=1, mosspacing=initialize_variant("1arcsec"), distance=initialize_variant("0m")) -> bool
00367 
00368         Summary
00369                 Set observed mosaic fields
00370 
00371         Input Parameters:
00372                 sourcename       Name of source or field (must be specified). SOURCE 'unknown' 
00373                 calcode          Calibration code '' 
00374                 fieldcenter      Coordinates of mosaic field center MDirection 
00375                 xmosp            Number of mosaic pointing in horizontal direction 1 
00376                 ymosp            Number of mosaic pointing in vertical direction 1 
00377                 mosspacing       Spacing between mosaic pointings 1arcsec 
00378                 distance         Distance to the object 0m 
00379                 
00380         --------------------------------------------------------------------------------
00381                       
00382         """
00383         return _simulator.simulator_setmosaicfield(self, *args, **kwargs)
00384 
00385     def setspwindow(self, *args, **kwargs):
00386         """
00387         setspwindow(self, spwname=string("XBAND"), freq=initialize_variant("8.0e9Hz"), deltafreq=initialize_variant("50e6Hz"), 
00388             freqresolution=initialize_variant("50.e6Hz"), refcode=string("TOPO"), 
00389             nchannels=1, stokes=string("RR LL")) -> bool
00390 
00391         Summary
00392                 Set one or more spectral windows
00393 
00394         Input Parameters:
00395                 spwname          Unique user-supplied name for this spectral window XBAND 'XBAND' 
00396                 freq             Starting frequency 8.0e9Hz 
00397                 deltafreq        Frequency increment per channel 50e6Hz 
00398                 freqresolution   Frequency resolution per channel 50.e6Hz 
00399                 refcode          Spectral reference code e.g. LSRK, TOPO, BARY TOPO LSRK LSRD BARY GEO TOPO GALACTO LGROUP CMB 
00400                 nchannels        Number of channels 1 
00401                 stokes           Stokes types to simulate RR LL 'RR LL' 
00402                 
00403         --------------------------------------------------------------------------------
00404                       
00405         """
00406         return _simulator.simulator_setspwindow(self, *args, **kwargs)
00407 
00408     def setdata(self, *args, **kwargs):
00409         """
00410         setdata(self, spwid=initialize_vector(1, (int)0), fieldid=initialize_vector(1, (int)0), msselect=string("")) -> bool
00411 
00412         Summary
00413                 Set the data parameters selection for subsequent processing
00414 
00415         Input Parameters:
00416                 spwid            Spectral Window Ids (0 relative) to select 0 
00417                 fieldid          Field Ids (0 relative) to select 0 
00418                 msselect         TQL select string applied as a logical 'and' with the other selections String 
00419                 
00420         --------------------------------------------------------------------------------
00421                       
00422         """
00423         return _simulator.simulator_setdata(self, *args, **kwargs)
00424 
00425     def predict(self, *args, **kwargs):
00426         """
00427         predict(self, imagename=std::vector< string >(1, ""), complist=string(""), incremental=False) -> bool
00428 
00429         Summary
00430                 Predict astronomical data from an image
00431 
00432         Input Parameters:
00433                 imagename        Name of image from which to predict visibilities 
00434                 complist         Name of component list String 
00435                 incremental      Add this model to the existing Data Visibilities? false 
00436                 
00437         --------------------------------------------------------------------------------
00438                       
00439         """
00440         return _simulator.simulator_predict(self, *args, **kwargs)
00441 
00442     def setoptions(self, *args, **kwargs):
00443         """
00444         setoptions(self, ftmachine=string("ft"), cache=0, tile=16, gridfunction=string("SF"), location=initialize_variant("ALMA"), 
00445             padding=1.3, facets=1, maxdata=2000.0, wprojplanes=1) -> bool
00446 
00447         Summary
00448                 Set various processing options
00449 
00450         Input Parameters:
00451                 ftmachine        Fourier transform machine. Possibilities are 'ft', 'sd' ft 'ft' 
00452                 cache            Size of gridding cache in complex pixels 0 
00453                 tile             Size of a gridding tile in pixels (in 1 dimension) 16 
00454                 gridfunction     Gridding function. String: 'SF'|'BOX'|'PB' SF 'SF' 
00455                 location         Location used in phase rotations. Position Measure of Coordinates of array location. E.g me.position('ITRF', '30.5deg', '-20.2deg', '6000km') or me.observatory('ALMA') ALMA position measure 
00456                 padding          Padding factor in image plane (>=1.0) 1.3 
00457                 facets           Number of facets 1 
00458                 maxdata          Maximum data to write to a single TSM file (MB) 2000.0 
00459                 wprojplanes      Number of projection planes when using wproject as the ft-machine 1 
00460                 
00461         --------------------------------------------------------------------------------
00462                       
00463         """
00464         return _simulator.simulator_setoptions(self, *args, **kwargs)
00465 
00466     def setvp(self, *args, **kwargs):
00467         """
00468         setvp(self, dovp=True, usedefaultvp=True, vptable=string(""), dosquint=True, parangleinc=initialize_variant("360deg"), 
00469             skyposthreshold=initialize_variant("180deg"), pblimit=1.0e-2) -> bool
00470 
00471         Summary
00472                 Set the voltage pattern model for subsequent processing
00473 
00474         Input Parameters:
00475                 dovp             Multiply by the voltage pattern (ie, primary beam) when simulating true 
00476                 usedefaultvp     Look up the default VP for this telescope and frequency? true 
00477                 vptable          If usedefaultvp is false, provide a VP Table made with vpmanager Table 
00478                 dosquint         Activate the beam squint in the VP model true 
00479                 parangleinc      Parallactice angle increment for squint application 360deg 
00480                 skyposthreshold  Position threshold on the sky for feed arrays ?? 180deg 
00481                 pblimit          Primary beam limit to use in feed arrays ? 1.0e-2 
00482                 
00483         --------------------------------------------------------------------------------
00484                       
00485         """
00486         return _simulator.simulator_setvp(self, *args, **kwargs)
00487 
00488     def corrupt(self):
00489         """
00490         corrupt(self) -> bool
00491 
00492         Summary
00493                 Corrupt the data with visibility errors
00494         --------------------------------------------------------------------------------
00495                       
00496         """
00497         return _simulator.simulator_corrupt(self)
00498 
00499     def reset(self):
00500         """
00501         reset(self) -> bool
00502 
00503         Summary
00504                 Reset the corruption terms
00505         --------------------------------------------------------------------------------
00506                       
00507         """
00508         return _simulator.simulator_reset(self)
00509 
00510     def setbandpass(self, *args, **kwargs):
00511         """
00512         setbandpass(self, mode=string("calculate"), table=string(""), interval=initialize_variant("3600s"), 
00513             amplitude=initialize_vector(1, (double)0.0)) -> bool
00514 
00515         Summary
00516                 Set the bandpasses
00517 
00518         Input Parameters:
00519                 mode             Mode of operation. String: 'calculate'|'table' calculate 'calculate' 
00520                 table            Name of table '' 
00521                 interval         Coherence interval e.g. '1h' 3600s 
00522                 amplitude        Variances errors in amplitude and phase 0.0 
00523                 
00524         --------------------------------------------------------------------------------
00525                       
00526         """
00527         return _simulator.simulator_setbandpass(self, *args, **kwargs)
00528 
00529     def setapply(self, *args, **kwargs):
00530         """
00531         setapply(self, table=string(""), type=string(""), t=0.0, field=initialize_variant(""), interp=string("linear"), 
00532             select=string(""), calwt=False, spwmap=initialize_vector(1, (int)-1), 
00533             opacity=0.0) -> bool
00534 
00535         Summary
00536                 Arrange for corruption by existing cal tables
00537 
00538         Input Parameters:
00539                 table            Calibration table name 
00540                 type             Component type B BPOLY G GSPLINE D P T TOPAC GAINCURVE 
00541                 t                Interpolation interval (seconds) 0.0 
00542                 field            Select on field 
00543                 interp           Interpolation type (in time) aipslin nearest linear 
00544                 select           TAQL selection string. Default is no selection. 
00545                 calwt            Calibrate weights? false 
00546                 spwmap           Spectral windows to apply -1 
00547                 opacity          Array-wide zenith opacity (for type='TOPAC') 0.0 
00548                 
00549         --------------------------------------------------------------------------------
00550                       
00551         """
00552         return _simulator.simulator_setapply(self, *args, **kwargs)
00553 
00554     def setgain(self, *args, **kwargs):
00555         """
00556         setgain(self, mode=string("fbm"), table=string(""), interval=initialize_variant("10s"), amplitude=initialize_vector(1, (double)0.01)) -> bool
00557 
00558         Summary
00559                 Set the gains
00560 
00561         Input Parameters:
00562                 mode             Mode of operation. String: 'fbm' fbm 'fbm' 
00563                 table            Optional name of table to write '' 
00564                 interval         timescale for gain variations NOT USED 10s 
00565                 amplitude        amplitude scale (RMS) for gain variations [real,imag] or scalar 0.01 [] 
00566                 
00567         --------------------------------------------------------------------------------
00568                       
00569         """
00570         return _simulator.simulator_setgain(self, *args, **kwargs)
00571 
00572     def settrop(self, *args, **kwargs):
00573         """
00574         settrop(self, mode=string("screen"), table=string(""), pwv=3.0, deltapwv=0.15, beta=1.1, windspeed=7.) -> bool
00575 
00576         Summary
00577                 Set tropospheric gain corruptions
00578 
00579         Input Parameters:
00580                 mode             Mode of operation - screen or individual antennas screen 'screen' 
00581                 table            Name of cal table '' 
00582                 pwv              total precipitable water vapour in mm 3.0 
00583                 deltapwv         RMS PWV fluctuations *as a fraction of PWV parameter* 0.15 
00584                 beta             exponent of fractional brownian motion 1.1 
00585                 windspeed        wind speed for screen type corruption (m/s) 7. 
00586                 
00587         --------------------------------------------------------------------------------
00588                       
00589         """
00590         return _simulator.simulator_settrop(self, *args, **kwargs)
00591 
00592     def setpointingerror(self, *args, **kwargs):
00593         """
00594         setpointingerror(self, epjtablename=string(""), applypointingoffsets=False, dopbcorrection=False) -> bool
00595 
00596         Summary
00597                 Set the Pointing error
00598 
00599         Input Parameters:
00600                 epjtablename     Name of a table that has E-Jones errors for Pointing 
00601                 applypointingoffsets     Apply pointing offsets false 
00602                 dopbcorrection   apply primary beam correction false 
00603                 
00604         --------------------------------------------------------------------------------
00605                       
00606         """
00607         return _simulator.simulator_setpointingerror(self, *args, **kwargs)
00608 
00609     def setleakage(self, *args, **kwargs):
00610         """
00611         setleakage(self, mode=string("constant"), table=string(""), amplitude=initialize_vector(1, (double)0.01), 
00612             offset=initialize_vector(1, (double)0.)) -> bool
00613 
00614         Summary
00615                 Set the polarization leakage
00616 
00617         Input Parameters:
00618                 mode             Mode of operation. String: 'constant' constant 'constant' 
00619                 table            Optional name of table to write '' 
00620                 amplitude        Magnitude of pol leakage [real,imag] 0.01 [] 
00621                 offset           Meam of pol leakage [real,imag] 0. [] 
00622                 
00623         --------------------------------------------------------------------------------
00624                       
00625         """
00626         return _simulator.simulator_setleakage(self, *args, **kwargs)
00627 
00628     def oldsetnoise(self, *args, **kwargs):
00629         """
00630         oldsetnoise(self, mode=string("calculate"), table=string(""), simplenoise=initialize_variant("0.0Jy"), 
00631             antefficiency=0.8, correfficiency=0.85, spillefficiency=0.85, tau=0.1, 
00632             trx=50, tatmos=230.0, tcmb=2.7) -> bool
00633 
00634         Summary
00635                 Set the noise level fixed sigma (mode=simplenoise) or
00636            Brown's equation (mode=calculate) OBSOLETE VERSION
00637 
00638         Input Parameters:
00639                 mode             Mode of operation. String: 'simplenoise'|'calculate' calculate 'simplenoise' 'calculate' 
00640                 table            Name of noise table - not currently implemented '' 
00641                 simplenoise      Level of noise if simplenoise 0.0Jy 
00642                 antefficiency    antenna efficiency 0.8 0.8 
00643                 correfficiency   Correlation efficiency 0.85 0.85 
00644                 spillefficiency  Forward spillover efficiency 0.85 0.85 
00645                 tau              Atmospheric Opacity 0.1 0.1 
00646                 trx              Receiver temp (ie, all non-atmospheric Tsys contributions) [K] 50 50 
00647                 tatmos           (Physical, not Brightness) Temperature of atmosphere [K] 230.0 230.0 
00648                 tcmb             Temperature of cosmic microwave background [K] 2.7 2.7 
00649                 
00650         --------------------------------------------------------------------------------
00651                       
00652         """
00653         return _simulator.simulator_oldsetnoise(self, *args, **kwargs)
00654 
00655     def setnoise(self, *args, **kwargs):
00656         """
00657         setnoise(self, mode=string("simplenoise"), table=string(""), simplenoise=initialize_variant("0.1Jy"), 
00658             pground=initialize_variant("560mbar"), relhum=20.0, altitude=initialize_variant("5000m"), 
00659             waterheight=initialize_variant("200m"), pwv=initialize_variant("1mm"), 
00660             tatmos=250.0, tau=0.1, antefficiency=0.8, spillefficiency=0.85, 
00661             correfficiency=0.88, trx=50, tground=270.0, tcmb=2.73, OTF=True, senscoeff=0., 
00662             rxtype=0) -> bool
00663 
00664         Summary
00665                 Set the noise level fixed sigma (mode=simplenoise) or
00666            Brown's equation using the ATM model for frequency-dependent atmospheric
00667            opacity (mode=tsys-atm) or Brown's equation, manually specifying the zenith
00668            opacity (constant across the band) and atmospheric temperature 
00669            (mode=tsys-manual)
00670 
00671         Input Parameters:
00672                 mode             Mode of operation. simplenoise 'simplenoise' 'tsys-atm' 'tsys-manual' 
00673                 table            Name of optional cal table to write '' 
00674                 simplenoise      Level of noise if not calculated 0.1Jy 
00675                 pground          Ground pressure for ATM model (if tsys-atm) 560mbar 
00676                 relhum           ground relative humidity for ATM model (if tsys-atm) 20.0 
00677                 altitude         site altitude for ATM model (if tsys-atm) 5000m 
00678                 waterheight      Height of water layer for ATM model (if tsys-atm) 200m 
00679                 pwv              Precipitable Water Vapor ATM model (if tsys-atm) 1mm 
00680                 tatmos           Temperature of atmosphere [K] (if tsys-manual) 250.0 
00681                 tau              Zenith Atmospheric Opacity (if tsys-manual) 0.1 
00682                 antefficiency    Antenna efficiency 0.8 
00683                 spillefficiency  Forward spillover efficiency 0.85 
00684                 correfficiency   Correlation efficiency 0.88 
00685                 trx              Receiver temp (ie, all non-atmospheric Tsys contributions) [K] 50 
00686                 tground          Temperature of ground/spill [K] 270.0 
00687                 tcmb             Temperature of cosmic microwave background [K] 2.73 
00688                 OTF              calculate noise on-the-fly (WARNING: only experts with high-RAM machines should use False) true 
00689                 senscoeff        sensitivity constant (1./sqrt(2) for interferometer [default]; 1. for total power) 0. 
00690                 rxtype           Receiver type; 0=2SB, 1=DSB e.g. ALMA B9 0 
00691                 
00692         --------------------------------------------------------------------------------
00693                       
00694         """
00695         return _simulator.simulator_setnoise(self, *args, **kwargs)
00696 
00697     def setpa(self, *args, **kwargs):
00698         """
00699         setpa(self, mode=string("calculate"), table=string(""), interval=initialize_variant("10s")) -> bool
00700 
00701         Summary
00702                 Corrupt phase by the parallactic angle
00703 
00704         Input Parameters:
00705                 mode             Mode of operation. String: 'calculate'|'table' calculate 'calculate' 
00706                 table            Name of table '' 
00707                 interval         Interval for parallactic angle application, e.g. '10s' 10s 
00708                 
00709         --------------------------------------------------------------------------------
00710                       
00711         """
00712         return _simulator.simulator_setpa(self, *args, **kwargs)
00713 
00714     def setseed(self, seed=185349251):
00715         """
00716         setseed(self, seed=185349251) -> bool
00717 
00718         Summary
00719                 Set the seed for the random number generator
00720 
00721         Input Parameters:
00722                 seed             Seed 185349251 185349251 
00723                 
00724         --------------------------------------------------------------------------------
00725                       
00726         """
00727         return _simulator.simulator_setseed(self, seed)
00728 
00729 simulator_swigregister = _simulator.simulator_swigregister
00730 simulator_swigregister(simulator)
00731 
00732 # This file is compatible with both classic and new-style classes.
00733 
00734