IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Initial Version and Version 1 of DvoSchemaChangeProposal


Ignore:
Timestamp:
Jul 6, 2012, 5:35:26 PM (14 years ago)
Author:
heather
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DvoSchemaChangeProposal

    v1 v1  
     1== DVO Schema Change Proposal ==
     2
     3
     4In order to properly populate the Objects table in PSPS, we need to make a few schema changes to dvo.
     5
     6== ippToPsps (now) ==
     7
     8ippToPsps makes batches out of detections (cam), stacks, and "objects" (from dvo)
     9
     10Detections are loaded on a per smf basis:  relevant information is pulled from the smf in question and from the dvo.
     11
     12Stacks are loaded on a per stack_id basis: relevant information is pulled from the cmf and from the dvo.
     13
     14Objects are loaded per area of sky (example, from n0000/0563.11.* part of the sky), there are no joins back to smf or cmf (and we want to keep it that way).
     15
     16== PSPS ==
     17
     18There are missing fields in the Object table in PSPS, but it is not possible to cleanly ingest using ippToPsps
     19
     20 * '''xMagBest''' to be filled with kron magnitudes, using the values from the stack (however, what about overlap? how to grab the correct stack?).
     21
     22 * '''xyColor''' with colors made from xMagBest (trivial)
     23
     24 * '''sgSep'''minimum psfLikelihood of the five filters - i.e. if it is more extended in one filter than the others, use the one that gives the strongest indication of being extended - same problem need to find the stacks (the correct ones) and calculate
     25
     26 * '''objInfoFlag''' might already be in dvo?
     27 
     28 * '''xModID''' = flag for an upper limit from aperture measurements. i.e. if no detection put an upper limit from aperture measurment in xMagBest and set xModID for that filter to 1. Default 0. Alternatively, use the xMeanFlux and xMeanFluxErr for aperature/ upperlimits. 
     29   * at the moment this looks like it can be calculated in psps (correct? assuming xMagBest and xMeanFlux are both in the dvo..)
     30
     31 * '''XMin and XMax  (HAF) min and max mags are in PSPS.Object but are not filled.  Is this to be done on ipp side or psps side? '''
     32
     33 * why not fill the objects from stack?  It involves an update (bad for psps), and it causes chaos in ipptopsps (batches are for stack or for detection or for object, making a combination of those = bad)
     34
     35== DVO Schema changes Proposal ==
     36
     37 * add more information into cps:
     38 {{{
     39 FIELD MagBest,   MAGBEST,     float,       best (kron) mag in this band     mags
     40 FIELD dMagBest,  MAGBEST_ERR, float,       formal error on best mag         mags
     41 FIELD extNsigma, EXT_NSIGMA,  float,       Nsigma deviation towards EXT(from stack, same stack_id as for MagBest)
     42 }}}
     43   * do we want to add BestObjID so that we can find more information for the "Best" object  in the future?
     44   * similar question for XMin and XMax, should those also go into the cps file? or can they be calculated from dvo?
     45
     46 * add more information into cpm:
     47 {{{
     48 FIELD KronMag,  KRONMAG,     float, kron mag, mags
     49 FIELD dKronMag, KRONMAG_ERR, float, kron mag err, mags
     50
     51 }}}
     52   * ''' I don't know other fields we need other than Kron... (HAF) '''
     53 
     54 * addstar needs to be modded to handle these new fields
     55 
     56 * relphot needs to be modded to handle these new fields
     57
     58 == Proposed IPPtoPSPS changes ==
     59
     60 If the schema is changed, the following can be added to ipptopsps:
     61
     62 * stacks grab kron from the cmf file - keep it that way?
     63 * detections grab kron from the smf file - keep it that way?
     64
     65 * objects
     66   * have it suck in magbest, sgsep, flags
     67   * calculate colors and xmod id
     68   * xMin/xMax ??? (if in dvo, trivial to add)
     69
     70
     71