prism

Overview

Prism angles. A function of hour angle and declination.

Creators

  • PlateMaker external interface
  • PlateMaker internals
    • prismSet

Users

This list is not promised to be comprehensive.

Contents

Table columns

# name type units description
1 ADCID integer   which lens
2 phi float degrees in CS5 system, x through y is positive angle

Storage and access

Through DOS

After nfsproc is run for a sequence, the get PML command may be used retrieve the prism data from PlateMaker.

First, a PML connection must be established:

>>> from DOSlib.PML import dos_connection
>>> pm = dos_connection('PLATEMAKER')
>>> pm.execute('configure')
'SUCCESS'

The prism data is normally calculated by PlateMaker when nfsproc is called. So, load some sample input for it, and run nfsproc:

>>> from PlateMaker import test_data
>>> targets = test_data.targets
>>> pm.execute('set', seqid=52254)
'SUCCESS'
>>> pm.execute('set', targets=targets)
'SUCCESS'
>>> pm.execute('nfsproc')
'SUCCESS'

Now we can retrieve prism from PlateMaker, which it will return in the form of numpy.recarray.

>>> prism = pm.execute('get', 'prism')
>>> prism.shape
(2,)
>>> prism.dtype
dtype((numpy.record, [('ADCID', '<i8'), ('phi', '<f8')]))

Then we can also send values for prism to PlateMaker (never really a useful thing to do):

>>> pm.execute('set', prism=prism)
'SUCCESS'

Preferred file representation

Name template:prism-{PLATE_ID}.dat
Format:whitespace delimited ASCII text

Example file contents

::
>>> from PlateMaker import test_data
>>> fname = test_data.data_dir + '/prism-52254.2.dat'
>>> print(open(fname, 'r').readline())
#ADC-ID   phi

>>> print(open(fname, 'r').read()) 
#ADC-ID   phi
   1     179.88
   2     -179.71