fif_spots¶
Overview¶
The fiber fiducial spot positions from the FVC.
Creators¶
- PlateMaker testing and simulation
- fvcsim
Contents¶
Table columns¶
| # | name | type | units | description |
|---|---|---|---|---|
| 1 | serial | integer | ||
| 2 | x_pix | float | ||
| 3 | y_pix | float | ||
| 4 | mag | float | ||
| 5 | pos_err | float | ||
| 6 | flag | int |
Storage and access¶
Through DOS¶
After the seqid is set, the set and get PML commands may be used to
provide PlateMaker with the targets, and retrieve them back if wanted.
First, a PML connection must be established:
>>> from DOSlib.PML import dos_connection
>>> pm = dos_connection('PLATEMAKER')
>>> pm.execute('configure')
'SUCCESS'
and some sample data loaded:
>>> from PlateMaker import test_data
>>> fif_spots = test_data.fif_spots
The data are stored in a numpy.recarray:
>>> fif_spots.dtype
dtype((numpy.record, [('serial', '<i8'), ('x_pix', '<f8'), ('y_pix', '<f8'), ('mag', '<f8'), ('pos_err', '<f8'), ('flags', '<i8')]))
We need to set the seqid in PlateMaker to prepare it for
working on a sequence:
>>> pm.execute('set', seqid=test_data.seq_id)
'SUCCESS'
Then we can set fif_spots:
>>> pm.execute('set', fif_spots=fif_spots)
'SUCCESS'
and get them back:
>>> retrieved_fif_spots = pm.execute('get', 'fif_spots')
Preferred file representation¶
| Name template: | fvc-fif-${SEQID}.{CONFIG_ID}.dat |
|---|---|
| Format: | whitespace delimited ASCII text |
Example file contents¶
- ::
>>> from PlateMaker import test_data >>> fname = test_data.data_dir + '/fvc-fif-52254.5.dat' >>> print(open(fname, 'r').read()) #serial x_pix y_pix mag pos_err flags ...