00001
00002
00003
00004
00005
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('_calplot', [dirname(__file__)])
00017 except ImportError:
00018 import _calplot
00019 return _calplot
00020 if fp is not None:
00021 try:
00022 _mod = imp.load_module('_calplot', fp, pathname, description)
00023 finally:
00024 fp.close()
00025 return _mod
00026 _calplot = swig_import_helper()
00027 del swig_import_helper
00028 else:
00029 import _calplot
00030 del version_info
00031 try:
00032 _swig_property = property
00033 except NameError:
00034 pass
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 calplot(_object):
00071 """Proxy of C++ casac::calplot class"""
00072 __swig_setmethods__ = {}
00073 __setattr__ = lambda self, name, value: _swig_setattr(self, calplot, name, value)
00074 __swig_getmethods__ = {}
00075 __getattr__ = lambda self, name: _swig_getattr(self, calplot, name)
00076 __repr__ = _swig_repr
00077 def __init__(self):
00078 """__init__(self) -> calplot"""
00079 this = _calplot.new_calplot()
00080 try: self.this.append(this)
00081 except: self.this = this
00082 __swig_destroy__ = _calplot.delete_calplot
00083 __del__ = lambda self : None;
00084 def close(self):
00085 """
00086 close(self) -> bool
00087
00088 Summary
00089 *** n Close the current calibration table. n ***
00090 --------------------------------------------------------------------------------
00091
00092 """
00093 return _calplot.calplot_close(self)
00094
00095 def done(self):
00096 """
00097 done(self) -> bool
00098
00099 Summary
00100 *** n Close the current calibration table. n ***
00101 --------------------------------------------------------------------------------
00102
00103 """
00104 return _calplot.calplot_done(self)
00105
00106 def next(self):
00107 """
00108 next(self) -> bool
00109
00110 Summary
00111 *** n Continue plotting (iteration mode).n ***
00112 --------------------------------------------------------------------------------
00113
00114 """
00115 return _calplot.calplot_next(self)
00116
00117 def open(self, *args, **kwargs):
00118 """
00119 open(self, caltable=string("")) -> bool
00120
00121 Summary
00122 *** n Open a calibration table for use. n
00123 Supported calibration types: n
00124 G = gainn
00125 B = bandpassn
00126 M = baseline-based gainn
00127 MF= baseline-based bandpassn
00128 P = parallactic anglen
00129 T = tropospheren
00130 K = baseline-based fringe fittingn ***
00131
00132
00133 Input Parameters:
00134 caltable Calibration Table name
00135
00136 --------------------------------------------------------------------------------
00137
00138 """
00139 return _calplot.calplot_open(self, *args, **kwargs)
00140
00141 def plot(self, *args, **kwargs):
00142 """
00143 plot(self, xaxis=string("time"), yaxis=string("time")) -> bool
00144
00145 Summary
00146 *** n Plot calibration solutions using user inputs from plotoptions, setdata n
00147 Options: plottype - AMP, PHASE, REAL, IMAG, SNRn ***
00148
00149 Input Parameters:
00150 xaxis Value to plot on the X axis ('time','chan','amp','phase','real','imag','snr') time
00151 yaxis Value to plot on the Y axis ('amp','phase','real','imag','snr') time
00152
00153 --------------------------------------------------------------------------------
00154
00155 """
00156 return _calplot.calplot_plot(self, *args, **kwargs)
00157
00158 def savefig(self, *args, **kwargs):
00159 """
00160 savefig(self, filename=string(""), dpi=-1, orientation=string(""), papertype=string(""), facecolor=string(""),
00161 edgecolor=string("")) -> bool
00162
00163 Summary
00164
00165 Save the currently plotted image.
00166
00167
00168 Input Parameters:
00169 filename Name the plot image is to be saved to.
00170 dpi Number of dots per inch (resolution) to save the image at. -1
00171 orientation Either landscape or portrait. Supported by the postscript format only.
00172 papertype Valid values are: letter, legal, exective, ledger, a0-a10 and b0-b10. This option is supported byt the postscript format only.
00173 facecolor Color of space between the plot and the edge of the square. Valid values are the same as those accepted by the plotcolor option.
00174 edgecolor Color of the outer edge. Valid values are the same as those accepted by the plotcolor option.
00175
00176 --------------------------------------------------------------------------------
00177
00178 """
00179 return _calplot.calplot_savefig(self, *args, **kwargs)
00180
00181 def plotoptions(self, *args, **kwargs):
00182 """
00183 plotoptions(self, subplot=111, overplot=False, iteration=string(""), plotrange=initialize_vector(1, (double)0.0),
00184 showflags=False, plotsymbol=string("."), plotcolor=string("green"),
00185 markersize=5.0, fontsize=10.0) -> bool
00186
00187 Summary
00188 *** n Specify list of plot options. n
00189 Options: multiplot = true; will use the nxpanels,nypanels setting for displayn***
00190
00191 Input Parameters:
00192 subplot matplotlib style panel number, e.g 221 means 4 panels 2x2 and plotting on the first panel 111
00193 overplot Overplot the next plot. false
00194 iteration Iterate plots on antenna, spw, field, and/or time
00195 plotrange integer for the plot symbol. 0.0
00196 showflags Create multiple pages of plots (per antenna). false
00197 plotsymbol The plot symbol to use .
00198 plotcolor integer for the plot symbol. green
00199 markersize integer for the plot symbol. 5.0
00200 fontsize integer for the plot symbol. 10.0
00201
00202 --------------------------------------------------------------------------------
00203
00204 """
00205 return _calplot.calplot_plotoptions(self, *args, **kwargs)
00206
00207 def markflags(self, *args, **kwargs):
00208 """
00209 markflags(self, panel=0, region=initialize_vector(1, (double)0.0)) -> bool
00210
00211 Summary
00212 *** n Mark a rectangular region to flag. Click left mouse button, drag and release to mark the region. Multiple regions can be marked. Hit ESC to clearregions (not currently enabled).n ***
00213
00214 Input Parameters:
00215 panel whihc panel to flag on, in case there is more than 1 0
00216 region [xmin,ymin,xmax,ymax] bounding box 0.0
00217
00218 --------------------------------------------------------------------------------
00219
00220 """
00221 return _calplot.calplot_markflags(self, *args, **kwargs)
00222
00223 def flagdata(self):
00224 """
00225 flagdata(self) -> bool
00226
00227 Summary
00228 *** n Flag Data for selected flag regions. Flags are not writtento disk unless diskwrite=true (or diskwrite=1) is set.n ***
00229 --------------------------------------------------------------------------------
00230
00231 """
00232 return _calplot.calplot_flagdata(self)
00233
00234 def locatedata(self):
00235 """
00236 locatedata(self) -> bool
00237
00238 Summary
00239 *** n Locate and print info about Data for selected flag regions.n ***
00240 --------------------------------------------------------------------------------
00241
00242 """
00243 return _calplot.calplot_locatedata(self)
00244
00245 def selectcal(self, *args, **kwargs):
00246 """
00247 selectcal(self, antenna=initialize_variant(""), field=initialize_variant(""), spw=initialize_variant(""),
00248 time=initialize_variant(""), poln=string("")) -> bool
00249
00250 Summary
00251 *** n Select a subset of the data for plotting and specify calibration type n ***
00252
00253 Input Parameters:
00254 antenna Select on antennas
00255 field Select on field
00256 spw Select on spectral window
00257 time Select on time
00258 poln Polarization to plot ('', 'RL', 'R', 'L', 'XY', 'X', 'Y', '/')
00259
00260 --------------------------------------------------------------------------------
00261
00262 """
00263 return _calplot.calplot_selectcal(self, *args, **kwargs)
00264
00265 def stopiter(self, rmplotter=False):
00266 """
00267 stopiter(self, rmplotter=False) -> bool
00268
00269 Summary
00270 *** n Stop plot iterations. n ***
00271
00272 Input Parameters:
00273 rmplotter Indicates of the plot window should be removed (true)from the display or left (false) false
00274
00275 --------------------------------------------------------------------------------
00276
00277 """
00278 return _calplot.calplot_stopiter(self, rmplotter)
00279
00280 def clearplot(self, subplot=000):
00281 """
00282 clearplot(self, subplot=000) -> bool
00283
00284 Summary
00285 Clear the plotting window or a particular
00286 panel.
00287
00288
00289 Input Parameters:
00290 subplot Three digits number: first digit for nrows, second for ncols, last for pannel number. 000
00291
00292 --------------------------------------------------------------------------------
00293
00294 """
00295 return _calplot.calplot_clearplot(self, subplot)
00296
00297 calplot_swigregister = _calplot.calplot_swigregister
00298 calplot_swigregister(calplot)
00299
00300 # This file is compatible with both classic and new-style classes.
00301
00302