| | 1 | = Tracing PSPS Detections back to the source data = |
| | 2 | Bill Sweeney |
| | 3 | |
| | 4 | TODO: put up link here |
| | 5 | |
| | 6 | While triaging SAS 39 it became clear that connecting the data in the PSPS back to the source in the IPP and DVO was non-trivial. We need to do |
| | 7 | this to insure the completeness and integrity of the PSPS database. |
| | 8 | |
| | 9 | The first thing Bill attacked was comparing the data in the Detection Table (single frame detections) with the original psphot detections which |
| | 10 | are located in a camera stage '.smf' file. |
| | 11 | |
| | 12 | The smf file contains 2 extensions for each OTA in the exposure. The extension that we are interested in is the '.psf' extension. The other |
| | 13 | contains the results of the detection efficience measurements. |
| | 14 | |
| | 15 | == Creating a concatenated file containing all detections in one table == |
| | 16 | The multi-extension structure is kind of hard to work with for our purposes. So I wrote a program that concatenates all of the results into |
| | 17 | a single table. In order to make the detections from the different OTAs distinguishable a column called IMAGE_ID is added. This column is |
| | 18 | set to the value (exp_id * 100 + IPP_IDET) which matches the format of the column Detection.imageID in PSPS. |
| | 19 | |
| | 20 | Consider the SAS2 exposure 356801. The smf file may be found with the following command. |
| | 21 | {{{ |
| | 22 | % camtool -processedexp -exp_id 356801 -label SAS.20141118 | grep path_base | awk '{print $3".smf"}' |
| | 23 | neb://any/SAS2/SAS.20141118/o5745g0427o.356801/o5745g0427o.356801.cm.1218577.smf |
| | 24 | }}} |
| | 25 | And then the concatsmf may be used to extractx the detections |
| | 26 | {{{ |
| | 27 | % concatsmf neb://any/SAS2/SAS.20141118/o5745g0427o.356801/o5745g0427o.356801.cm.1218577.smf o5745g0427o.356801.cm.1218577.smf.tcat |
| | 28 | /data/ipp079.0/nebulous/8f/82/5477976254.SAS2:SAS.20141118:o5745g0427o.356801:o5745g0427o.356801.cm.1218577.smf |
| | 29 | |
| | 30 | % ftlist o5745g0427o.356801.cm.1218577.smf.tcat h |
| | 31 | |
| | 32 | Name Type Dimensions |
| | 33 | ---- ---- ---------- |
| | 34 | HDU 1 Primary Array Image Int1(3627) |
| | 35 | HDU 2 o5745g0427o.356801.cm.1218577.smf BinTable 58 cols x 58059 rows |
| | 36 | }}} |
| | 37 | |
| | 38 | So we have 58059 detections from this exposure. |
| | 39 | |
| | 40 | Next we go to PSPS and find Detections from this exposure with the query |
| | 41 | |