IPP Distribution Targets

Destinations (remote sites) register interest in subsets of IPP data that are identified by targets.
A target is defined by rows in the ipp database table distTarget

mysql> select * from distTarget;
+-----------+----------+--------+-------+---------+-----------------------------------+
| target_id | obs_mode | stage  | clean | state   | comment                           |
+-----------+----------+--------+-------+---------+-----------------------------------+
|         1 | MD       | chip   |     1 | enabled | Medium Deep Chip processed images | 
|         2 | MD       | raw    |     0 | enabled | Medium Deep Raw images            | 
|         3 | MD       | warp   |     1 | enabled | Medium Deep warp images           | 
|         4 | MD       | camera |     1 | enabled | Medium Deep Cam runs              | 
|         5 | MD       | fake   |     1 | enabled | Medium Deep fake runs             | 
|         6 | MD       | chip   |     0 | enabled | MD chip images not cleaned        | 
|         7 | 3PI      | chip   |     1 | enabled | 3PI cleaned                       | 
|         8 | MD       | diff   |     1 | enabled | Medium Deep diff runs             | 
|         9 | MD       | stack  |     0 | enabled | Medium Deep Stacks                | 
+-----------+----------+--------+-------+---------+-----------------------------------+
9 rows in set (0.02 sec)

issues

obs_mode is the value of rawExp.obs_mode. This is set by summit system when the data is collected. We might want to specifiy the data with a field which the ipp controls.
We might also want something more fine grained. For example: a destination might be interested in a subset of the MD fields.