Opened 16 years ago

Last modified 16 years ago

#162 reopened defect

Polarisation data extraction

Reported by: james.green@… Owned by: Malte Marquarding
Priority: normal Milestone: ASAP 2.4
Component: General Version: 2.0
Severity: normal Keywords:
Cc:

Description (last modified by Malte Marquarding)

I'm trying to extract ascii files with just the polarisation data in them, but the files produced look identical. I was wondering if you might be able to spot anything obvious that I'm missing. Here are the commands I'm using:

   plotscans.set_selection()

   sel = plotscans.get_selection()
   sel.set_polarisations(['I','Plinear'])
   plotscans.set_selection(sel)
   plotscans.save(source+'IPl','ASCII')

   sel.reset()
   plotscans.set_selection()

   sel = plotscans.get_selection()
   sel.set_polarisations(['RR', 'LL'])
   plotscans.set_selection(sel)
   plotscans.save(source+'RRLL','ASCII')

Change History (3)

comment:1 by Malte Marquarding, 16 years ago

Description: modified (diff)
Owner: changed from Malte Marquarding to Malte Marquarding
Status: newassigned

Hi Jimi,

you need to convert the polarisation type first, e.g. here

plin = plotscans.convert_pol('linpol')
plin.save(source+'IPl','ASCII')

The documentation for scantable.convert_pol doesn't actually list 'linpol' as an option, which I have fixed. It works though.

comment:2 by Malte Marquarding, 16 years ago

Resolution: fixed
Status: assignedclosed

comment:3 by Malte Marquarding, 16 years ago

Resolution: fixed
Status: closedreopened

convert_pol doesn't handle cross-terms.

As a workaround write the text file in python as per Tips&Tricks WriteSpectraToTextFile

Note: See TracTickets for help on using tickets.