Changeset 1689 for trunk/python
- Timestamp:
- 02/10/10 11:59:23 (15 years ago)
- Location:
- trunk/python
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r1645 r1689 389 389 from simplelinefinder import simplelinefinder 390 390 from linecatalog import linecatalog 391 from opacity import skydip 391 392 392 393 if rcParams['useplotter']: -
trunk/python/asapfitter.py
r1589 r1689 485 485 486 486 @print_log_dec 487 def plot(self, residual=False, components=None, plotparms=False, filename=None): 487 def plot(self, residual=False, components=None, plotparms=False, 488 filename=None): 488 489 """ 489 490 Plot the last fit. -
trunk/python/scantable.py
r1617 r1689 1 import functools 1 2 from asap._asap import Scantable 2 3 from asap import rcParams … … 7 8 from asap.coordinate import coordinate 8 9 from asap import _n_bools, mask_not, mask_and, mask_or 10 11 12 def preserve_selection(func): 13 @functools.wraps(func) 14 def wrap(obj, *args, **kw): 15 basesel = obj.get_selection() 16 val = func(obj, *args, **kw) 17 obj.set_selection(basesel) 18 return val 19 return wrap 20 9 21 10 22 class scantable(Scantable): … … 1104 1116 and Tsys are multiplied by the correction factor. 1105 1117 Parameters: 1106 tau: Opacity from which the correction factor is1118 tau: (list of) opacity from which the correction factor is 1107 1119 exp(tau*ZD) 1108 where ZD is the zenith-distance 1120 where ZD is the zenith-distance. 1121 If a list is provided, it has to be of length nIF, 1122 nIF*nPol or 1 and in order of IF/POL, e.g. 1123 [opif0pol0, opif0pol1, opif1pol0 ...] 1109 1124 insitu: if False a new scantable is returned. 1110 1125 Otherwise, the scaling is done in-situ … … 1114 1129 self._math._setinsitu(insitu) 1115 1130 varlist = vars() 1131 if not hasattr(tau, "__len__"): 1132 tau = [tau] 1116 1133 s = scantable(self._math._opacity(self, tau)) 1117 1134 s._add_history("opacity", varlist)
Note:
See TracChangeset
for help on using the changeset viewer.