source: branches/Release12/test/parkes-pol.py@ 3075

Last change on this file since 3075 was 744, checked in by phi196, 19 years ago

Parkes polarimetry tests

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
1#!/usr/bin/env python
2from asap import *
3
4rcParams['verbose'] = 0
5
6# Don't plot to the screen...
7del plotter
8plotter = asapplotter(False)
9
10print "Test of Parkes polarimetry (P484)"
11
12data_1665 = scantable('data/parkes-pol.rpf')
13data_1665.rotate_linpolphase(-45)
14data_1665.rotate_xyphase(-2)
15data_1665.set_unit('km/s')
16data_1665.set_freqframe('LSRK')
17
18# Make a copy for the 1667 transition
19data_1667 = data_1665.copy()
20data_1667.set_restfreqs(lines = ['OH1667'])
21data_1667.set_unit('km/s')
22data_1667.set_freqframe('LSRK')
23
24
25# Look at the first scan
26d1_5 = data_1665.get_scan(0)
27d1_7 = data_1667.get_scan(0)
28
29# Baseline
30msk = d1_5.create_mask([-30,-25],[-5,0])
31d1_5.poly_baseline(msk,1)
32msk = d1_7.create_mask([-30,-25],[-5,0])
33d1_7.poly_baseline(msk,1)
34
35# Plot the results
36plotter.plot(d1_5,d1_7)
37plotter.set_mode('p','s')
38plotter.set_layout(2,1)
39plotter.set_range(-30,0)
40plotter.set_cursor(pol=['I','Q','U','V'])
41plotter.set_cursor(pol=['I','Plinear'])
42plotter.set_cursor(pol=['RR','LL'])
43plotter.save('output/parkes_rrll.png')
44
45print "Parkes-Pol Test successful"
Note: See TracBrowser for help on using the repository browser.