Changeset 968 for trunk


Ignore:
Timestamp:
04/03/06 10:09:27 (19 years ago)
Author:
mar637
Message:

a working version for asap2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/parkes-pol.py

    r938 r968  
    1818
    1919# Look at the first scan
    20 from asap._asap import selector
    2120selection = selector()
    22 selection._setscans([0])
    23 data_1665._setselection(selection)
     21selection.set_scans(0)
     22data_1665.set_selection(selection)
    2423
    2524d1_5 = data_1665.copy()
    2625d1_7 = data_1665.copy()
    2726
    28 d1_7.set_restfreqs([1667.0],'MHz')
     27d1_7.set_restfreqs([1667.3590],'MHz')
     28
     29# Baseline both
     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
    2935# merge the two scans back together into a new scantable
    3036plotscans = merge(d1_5,d1_7)
    3137print 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)
     38del d1_5,d1_7,data_1665
    3739# Plot the results
    3840plotter.set_mode('p','s')
    3941plotter.set_layout(2,1)
    4042plotter.set_range(-30,0)
    41 selection._reset()
    42 selection._setpolstrings(['I','Q', 'U', 'V'])
     43selection.reset()
     44selection.set_polarisations(['I','Q', 'U', 'V'])
    4345plotter.set_selection(selection)
    44 selection._setpolstrings(['I','Plinear'])
     46selection.set_polarisations(['I','Plinear'])
    4547plotter.set_selection(selection)
    46 selection._setpolstrings(['RR','LL'])
     48selection.set_polarisations(['RR','LL'])
     49plotter.set_selection(selection)
    4750plotter.plot(plotscans)
    48 plotter.set_selection(selection)
    4951plotter.save('output/parkes_rrll.png',dpi=80)
    5052
Note: See TracChangeset for help on using the changeset viewer.