IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Initial Version and Version 1 of SA9ndetections


Ignore:
Timestamp:
Sep 28, 2012, 1:48:06 PM (14 years ago)
Author:
heather
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SA9ndetections

    v1 v1  
     1== PSPS SA9 objects/ndetections investigations ==
     2
     3There are problems with ndetections in objects table in PSPS, there are several varieties of problems:
     4
     5=== ndetections = -999 ===
     6
     7How to find:
     8{{{
     9select count(*) from object where ndetections = -999
     10}}}
     11
     12Heather did a slightly different version, to try to figure out where these things live:
     13
     14{{{
     15select (ippobjid/1000000000), count (*) as n from objects where ndetections = -999 group by (ippobjid/1000000000) order by n desc
     16}}}
     17
     18This gives the following ( there are a lot of them these are only the top 'interesting' ones):
     19
     20|| ippobjid thing || count(*) || batch ||
     21||93293 ||      12300 || 360500 -- this is the failed ob batch  why do these go into the db?||
     22||93096 ||      7398 ||   no batch ||
     23||18740 ||      6601||  ... ||
     24||93092||       6577||
     25||18744 ||6351||
     26||93116 ||5752||
     27||93120||       5657||
     28||93088||       3902||
     29||93100||       3866||
     30||18768||       3552||
     31||18748||       3463||
     32||93112||       3323||
     33||18756||       3205||
     34||18764||       231||
     35||18986||       213 ||
     36||etc   ||   ||
     37
     38The first one is interesting - it is the OB batch that failed to load. That should not be put into PSPS (heather thinks)
     39
     40The others, what are they?  The ippobjid/1000000000 corresponds to the 'stage_id', but according to ipptopsps.batch, there is no batch with those stage ids.. I grabbed one of the fault ones:
     41 * objid = 104073276979184735   
     42 * ippobjid = 93096000007333
     43 * ra = 327.697918
     44 * dec = -3.27140108245
     45
     46and asked which batches it could live in (based on min/max obj id). I get the following 20 batches which I downloaded:
     47{{{
     48mysql> select batch_id, stage_id from batch where min_obj_id < 104073276979184735 and
     49 max_obj_id > 104073276979184735 and dvo_db = 'SAS.20120905' and batch_type = 'OB';
     50+----------+----------+
     51| batch_id | stage_id |
     52+----------+----------+
     53|   359431 |    93354 |
     54|   359433 |    93355 |
     55|   359614 |    93157 |
     56|   359615 |    93158 |
     57|   359616 |    93159 |
     58|   359617 |    93160 |
     59|   360325 |    93259 |
     60|   360332 |    93260 |
     61|   360367 |    93305 |
     62|   360373 |    93306 |
     63|   361579 |    93307 |
     64|   361582 |    93308 |
     65|   361595 |    93353 |
     66|   361676 |    93209 |
     67|   361762 |    93257 |
     68|   361781 |    93258 |
     69|   362277 |    93356 |
     70|   362355 |    93210 |
     71|   362356 |    93211 |
     72|   362362 |    93212 |
     73+----------+----------+
     7420 rows in set (0.14 sec)
     75}}}
     76
     77
     78
     79=== ndetections = very large number ===
     80
     81
     82
     83=== ndetections != ng + nr + ni + nz + ny ===
     84
     85