[evla-sw-discuss] OSRO python scripting: RestFrame and FreqVelSwitch Intents

David Harland dharland at nrao.edu
Wed Nov 25 17:54:37 EST 2009


David Harland wrote:
> I'm modifying the code that turns an OPT-created observation into a
> python script.  Below are some lines i want to address:
>
>    intents = Intention()
>
>    intents.addIntent('RestFrame="BLBL"')
>
>    intents.addIntent('FreqVelSwitch="VVVV"')
>
> I want to know if we'll be changing the number of characters in the 
> values that follow RestFrame and FreqVelSwitch.
>
> Currently i believe the ordering of the values for each of those keys 
> is IFs A, C, B, D.
>
> For 8-bit samplers this will still be fine.
>
> For the four 3-bit sampler pairs, what changes will be made?  (There 
> will be A1, A2, B1, ..., D2 to deal with.)

I received no feedback on the above, so below is how it's been coded.

RestFrame='ABCD' and FreqVelSwitch='ABCD' both have 4 chars after
the equals sign.  In the above i'll call 'A' the first character.
Below is a mapping of the character slots to the sampler output
pairs they represent.

Case 1: Two 8-bit pairs

  1st char: A0/C0
  2nd char: B0/D0
  3rd char: n/a
  4th char: n/a

Case 2: Four 3-bit pairs

  1st char: A1/C1
  2nd char: B1/D1
  3rd char: A2/C2
  4th char: B2/D2

Case 3: One 8-bit pair & Two 3-bit pairs

  1st char: A0/C0
  2nd char: B1/D1
  3rd char: n/a
  4th char: B2/D2

  or

  1st char: A1/C1
  2nd char: B0/D0
  3rd char: A2/C2
  4th char: n/a




More information about the evla-sw-discuss mailing list