| | 38 | |
| | 39 | == Plots with batchid or mag == |
| | 40 | |
| | 41 | |
| | 42 | |
| | 43 | == Comparisions of ndetections == |
| | 44 | |
| | 45 | Another way to check the integrity is to do comparisons of the number of detections for each batch. in the ipptopsps.batch table, there is a column (ndetections) that is the number of detections published (per batch). The following queries make counts of the number of detections for each of stack/detection and grouped by batchid: |
| | 46 | |
| | 47 | {{{ |
| | 48 | select batchid, count(objid) INTO mydb.[md06detcounts2] from Detection join ImageMeta on Detection.imageID = ImageMeta.imageID join FrameMeta on FrameMeta.frameID = imageMeta.frameID group by batchid |
| | 49 | |
| | 50 | select batchid, count(*) INTO mydb.[md01stackdetcounts] from StackDetectionFull join StackMeta on StackDetectionFull.StackMetaID = StackMeta.StackMetaID group by batchid |
| | 51 | }}} |
| | 52 | |
| | 53 | I wrote a perl script to compare the numbers between these 2 databases. I find the following |
| | 54 | |
| | 55 | || MD field || Detections || Stacks || Objects || |
| | 56 | || MD01 || 1565 out of 3797 batches are missing detections || all good || not done yet || |
| | 57 | || MD02 || all good || all good || not done yet || |
| | 58 | || MD03 || all good || all good || not done yet || |
| | 59 | || MD04 || all good || all good || not done yet || |
| | 60 | || MD05 || not done yet || all good || not done yet || |
| | 61 | || MD06 || not done yet || all good || not done yet || |
| | 62 | || MD07 || not done yet || 164 out of 321 batches have extra detections || not done yet || |
| | 63 | || MD08 || not done yet || all good || not done yet || |
| | 64 | || MD09 || not done yet || all good || not done yet || |
| | 65 | || MD10 || not done yet || all good || not done yet || |
| | 66 | |
| | 67 | |
| | 68 | So far, MD02/MD03/MD04 are consistent (for the Stack/Detection tables) |
| | 69 | |
| | 70 | MD01 has problems with Detections |
| | 71 | |
| | 72 | MD07 has problems with Stack Detections |
| | 73 | |