Changeset 968
- Timestamp:
- 04/03/06 10:09:27 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/parkes-pol.py
r938 r968 18 18 19 19 # Look at the first scan 20 from asap._asap import selector21 20 selection = selector() 22 selection. _setscans([0])23 data_1665. _setselection(selection)21 selection.set_scans(0) 22 data_1665.set_selection(selection) 24 23 25 24 d1_5 = data_1665.copy() 26 25 d1_7 = data_1665.copy() 27 26 28 d1_7.set_restfreqs([1667.0],'MHz') 27 d1_7.set_restfreqs([1667.3590],'MHz') 28 29 # Baseline both 30 msk = d1_5.create_mask([-30,-25],[-5,0]) 31 d1_5.poly_baseline(msk,1) 32 msk = d1_7.create_mask([-30,-25],[-5,0]) 33 d1_7.poly_baseline(msk,1) 34 29 35 # merge the two scans back together into a new scantable 30 36 plotscans = merge(d1_5,d1_7) 31 37 print plotscans.summary() 32 del d1_5,d1_7 33 34 # Baseline 35 msk = plotscans.create_mask([-30,-25],[-5,0]) 36 plotscans.poly_baseline(msk,1) 38 del d1_5,d1_7,data_1665 37 39 # Plot the results 38 40 plotter.set_mode('p','s') 39 41 plotter.set_layout(2,1) 40 42 plotter.set_range(-30,0) 41 selection. _reset()42 selection. _setpolstrings(['I','Q', 'U', 'V'])43 selection.reset() 44 selection.set_polarisations(['I','Q', 'U', 'V']) 43 45 plotter.set_selection(selection) 44 selection. _setpolstrings(['I','Plinear'])46 selection.set_polarisations(['I','Plinear']) 45 47 plotter.set_selection(selection) 46 selection._setpolstrings(['RR','LL']) 48 selection.set_polarisations(['RR','LL']) 49 plotter.set_selection(selection) 47 50 plotter.plot(plotscans) 48 plotter.set_selection(selection)49 51 plotter.save('output/parkes_rrll.png',dpi=80) 50 52
Note:
See TracChangeset
for help on using the changeset viewer.