gfa_spots¶
Overview¶
The GFA 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
>>> gfa_spots = test_data.gfa_spots
The data are stored in a numpy.recarray
:
>>> gfa_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=52254)
'SUCCESS'
Then we can set gfa_spots
:
>>> pm.execute('set', gfa_spots=gfa_spots)
'SUCCESS'
and get them back:
>>> retrieved_gfa_spots = pm.execute('get', 'gfa_spots')
Preferred file representation¶
Name template: | fvc-gfa-${SEQID}.dat |
---|---|
Format: | whitespace delimited ASCII text |
Example file contents¶
- ::
>>> from PlateMaker import test_data >>> fname = test_data.data_dir + '/fvc-gfa-52254.5.dat' >>> print(open(fname, 'r').read()) #serial x_pix y_pix mag pos_err flags 1101 532.567 -61.614 0. 0. 8 1109 200.032 284.161 0. 0. 8