Changeset 1573
- Timestamp:
- 06/29/09 12:18:05 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r1565 r1573 91 91 'MS2' (saves as an aips++ 92 92 MeasurementSet V2) 93 'FITS' (save as image FITS - not 93 'FITS' (save as image FITS - not 94 94 readable by class) 95 95 'CLASS' (save as FITS readable by CLASS) … … 280 280 """Return the spectrum for the current row in the scantable as a list. 281 281 Parameters: 282 rowno: the row number to retrieve the spectrum from 282 rowno: the row number to retrieve the spectrum from 283 283 """ 284 284 return self._getspectrum(rowno) … … 287 287 """Return the mask for the current row in the scantable as a list. 288 288 Parameters: 289 rowno: the row number to retrieve the mask from 289 rowno: the row number to retrieve the mask from 290 290 """ 291 291 return self._getmask(rowno) … … 295 295 Parameters: 296 296 spec: the spectrum 297 rowno: the row number to set the spectrum for 297 rowno: the row number to set the spectrum for 298 298 """ 299 299 assert(len(spec) == self.nchan()) … … 487 487 none 488 488 """ 489 return self._get_column(self._getinttime, row) 490 489 return self._get_column(self._getinttime, row) 490 491 491 492 492 def get_sourcename(self, row=-1): … … 898 898 def shift_refpix(self, delta): 899 899 """ 900 Shift the reference pixel of the Spectra Coordinate by an 900 Shift the reference pixel of the Spectra Coordinate by an 901 901 integer amount. 902 902 Parameters: … … 1155 1155 """ 1156 1156 Return a scan where all spectra have been binned up. 1157 1157 1158 1158 Parameters: 1159 1159 width: The bin width (default=5) in pixels … … 1457 1457 def swap_linears(self): 1458 1458 """ 1459 Swap the linear polarisations XX and YY, or better the first two 1459 Swap the linear polarisations XX and YY, or better the first two 1460 1460 polarisations as this also works for ciculars. 1461 1461 """ … … 1552 1552 self._setsourcetype(stype) 1553 1553 self.set_selection(basesel) 1554 s ._add_history("set_sourcetype", varlist)1554 self._add_history("set_sourcetype", varlist) 1555 1555 1556 1556 def auto_quotient(self, preserve=True, mode='paired'): … … 1564 1564 preserve: Output = Toff * (on/off) - Toff 1565 1565 remove: Output = Toff * (on/off) - Ton 1566 mode: the on/off detection mode 1566 mode: the on/off detection mode 1567 1567 'paired' (default) 1568 1568 identifies 'off' scans by the … … 1655 1655 s = None 1656 1656 if isinstance(other, scantable): 1657 1657 s = scantable(self._math._binaryop(self, other, "ADD")) 1658 1658 elif isinstance(other, float): 1659 1659 s = scantable(self._math._unaryop(self, other, "ADD", False)) … … 1749 1749 self.flag(bnans) 1750 1750 self.set_selection(basesel) 1751 1751 1752 1752 1753 1753 def _add_history(self, funcname, parameters):
Note:
See TracChangeset
for help on using the changeset viewer.