Changeset 2937
- Timestamp:
- 04/25/14 14:20:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2936 r2937 2011 2011 """ 2012 2012 2013 fhead = coord['coord'].to_frequency(0) 2014 ftail = coord['coord'].to_frequency(self.nchan(spw) - 1) 2013 crd = coord['coord'] 2014 fhead = crd.to_frequency(0) 2015 ftail = crd.to_frequency(self.nchan(spw) - 1) 2015 2016 fcen = (fhead + ftail) / 2.0 2016 2017 … … 2047 2048 """ 2048 2049 2049 vhead = coord['coord'].to_velocity(0) 2050 vtail = coord['coord'].to_velocity(self.nchan(spw) - 1) 2051 vcen = (vhead + vtail) / 2.0 2050 crd = coord['coord'] 2051 fhead = crd.to_frequency(0) 2052 ftail = crd.to_frequency(self.nchan(spw) - 1) 2053 fcen = (fhead + ftail) / 2.0 2054 vcen = crd.to_velocity(crd.to_pixel(fcen)) 2052 2055 2053 2056 if ((expr_vmin <= vcen) and (vcen <= expr_vmax)):
Note:
See TracChangeset
for help on using the changeset viewer.