Changeset 2897
- Timestamp:
- 02/24/14 13:22:48 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2892 r2897 1337 1337 1338 1338 @asaplog_post_dec 1339 def get_doppler(self): 1340 """\ 1341 Get the doppler. 1342 """ 1343 return self._getcoordinfo()[2] 1344 1345 @asaplog_post_dec 1339 1346 def set_doppler(self, doppler='RADIO'): 1340 1347 """\ … … 1841 1848 specified velocity range in 1842 1849 spw 1. 1850 restfreq: the rest frequency. 1851 examples: '115.2712GHz', 115271201800.0 1852 frame: an optional frame type, default 'LSRK'. Valid frames are: 1853 'TOPO', 'LSRD', 'LSRK', 'BARY', 1854 'GEO', 'GALACTO', 'LGROUP', 'CMB' 1855 doppler: one of 'RADIO', 'OPTICAL', 'Z', 'BETA', 'GAMMA' 1843 1856 Returns: 1844 1857 A dictionary of selected (valid) spw and masklist pairs, … … 1857 1870 set_restfreq(self, restfreq) 1858 1871 1859 orig_coord 1872 orig_coord = self._getcoordinfo() 1860 1873 1861 1874 if frame is not None: … … 1866 1879 orig_doppler = orig_coord[2] 1867 1880 self.set_doppler(doppler) 1868 """1869 if frame is None: frame = orig_frame1870 self.set_freqframe(frame)1871 1872 if doppler is None: doppler = orig_doppler1873 self.set_doppler(doppler)1874 """1875 1881 1876 1882 valid_ifs = self.getifnos() … … 2106 2112 restf = self.get_restfreqs().values()[0][0] 2107 2113 (expr_v0, expr_v1) = get_velocity_by_string(expr0, expr1) 2108 expr_f0 = get_frequency_by_velocity(restf, expr_v0, doppler) 2109 expr_f1 = get_frequency_by_velocity(restf, expr_v1, doppler) 2114 dppl = self.get_doppler() 2115 expr_f0 = get_frequency_by_velocity(restf, expr_v0, dppl) 2116 expr_f1 = get_frequency_by_velocity(restf, expr_v1, dppl) 2110 2117 expr_p0 = coord.to_pixel(expr_f0) 2111 2118 expr_p1 = coord.to_pixel(expr_f1)
Note:
See TracChangeset
for help on using the changeset viewer.