IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2013, 4:48:58 PM (13 years ago)
Author:
eugene
Message:

updates from trunk

Location:
branches/eam_branches/ipp-20130711/ippTools/share
Files:
16 edited
7 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130711/ippTools/share

  • branches/eam_branches/ipp-20130711/ippTools/share/Makefile.am

    r35799 r36071  
    193193        disttool_definebyquery_sky.sql \
    194194        disttool_definebyquery_sky_singlefilter.sql \
     195        disttool_definebyquery_skycal.sql \
    195196        disttool_definebyquery_stack.sql \
    196197        disttool_definebyquery_warp.sql \
     
    207208        disttool_pending_raw.sql \
    208209        disttool_pending_sky.sql \
     210        disttool_pending_skycal.sql \
    209211        disttool_pending_stack.sql \
    210212        disttool_pending_warp.sql \
     
    398400        stacktool_tosummary.sql \
    399401        stacktool_addsummary.sql \
     402        stacktool_summary.sql \
    400403        staticskytool_definebyquery_select.sql \
    401404        staticskytool_definebyquery_select_by_dg.sql \
     
    408411        staticskytool_export_input.sql \
    409412        staticskytool_export_result.sql \
     413        staticskytool_export_skycalrun.sql \
     414        staticskytool_export_skycalresult.sql \
    410415        staticskytool_inputs.sql \
    411416        staticskytool_todo.sql \
     
    476481        releasetool_definerelstack_with_skycal.sql \
    477482        releasetool_listrelstack.sql \
     483        releasetool_summary.sql \
    478484        releasetool_definerelgroup_select_lap.sql \
    479485        releasetool_definerelgroup_select_data_group.sql \
    480486        releasetool_definerelgroup_select_exp_data_group.sql \
    481487        releasetool_definerelgroup_select_exp_lap.sql \
     488        releasetool_stacksummary.sql \
    482489        releasetool_pendingrelgroup.sql
    483490
  • branches/eam_branches/ipp-20130711/ippTools/share/camtool_find_pendingimfile.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20130711/ippTools/share/camtool_pendingexp.sql

    r28339 r36071  
    2323WHERE
    2424    chipRun.state = 'full'
    25     AND ((camRun.state = 'new' AND camProcessedExp.cam_id IS NULL) OR camRun.state = 'update')
     25    AND ((camRun.state = 'new' AND camProcessedExp.cam_id IS NULL) OR
     26         (camRun.state = 'update' and camProcessedExp.fault = 0 and camProcessedExp.quality = 0))
    2627    AND camMask.label IS NULL
    2728    AND (Label.active OR Label.active IS NULL)
  • branches/eam_branches/ipp-20130711/ippTools/share/chiptool_setimfiletoupdate.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20130711/ippTools/share/disttool_definebyquery_sky.sql

    r32696 r36071  
    33    staticskyRun.sky_id AS stage_id,
    44    CAST(0 AS SIGNED) AS magicked,
    5     -- run tag in the form 'sky.$skycell_id.$stack_id'
     5    -- run tag in the form 'sky.$skycell_id.$sky_id'
    66    CONCAT_WS('.', 'sky', stackRun.skycell_id, convert(staticskyRun.sky_id, CHAR)) as run_tag,
    77    staticskyRun.label,
  • branches/eam_branches/ipp-20130711/ippTools/share/disttool_toadvance.sql

    r32710 r36071  
    262262        AND distComponent.fault = 0
    263263UNION
     264-- skycal stage
     265-- NOTE this assumes that there is only one component per skycalRun
     266-- (one skycell)
     267SELECT
     268    distRun.dist_id,
     269    stage,
     270    stage_id,
     271    outroot,
     272    label,
     273    clean
     274    FROM distRun
     275    JOIN skycalResult on stage_id = skycal_id
     276    LEFT JOIN distComponent
     277        ON distRun.dist_id = distComponent.dist_id
     278    WHERE
     279        distRun.state = 'new'
     280        AND distRun.fault = 0
     281        AND distRun.stage = 'skycal'
     282        AND distComponent.component IS NOT NULL
     283        AND distComponent.fault = 0
     284UNION
    264285-- SSdiff stage
    265286SELECT
  • branches/eam_branches/ipp-20130711/ippTools/share/pxadmin_create_tables.sql

    r35789 r36071  
    21722172    dataRelease INT,         -- PSPS dataRelease
    21732173    priority    INT,
     2174    dvodb       VARCHAR(255),
     2175    ubercal_file VARCHAR(255),
    21742176    PRIMARY KEY(rel_id),
    21752177    UNIQUE KEY(surveyID, release_name),
     
    21862188    chip_id     BIGINT,         -- links to the runs that supplied the data
    21872189    cam_id      BIGINT,         -- for this release
    2188     group_id    INT,         -- id of relGroup that this exposure is contained in
     2190    group_id    INT,            -- id of relGroup that this exposure is contained in
    21892191    state       VARCHAR(16),    -- released, pending, archive, drop 
    2190     flags       INT UNSIGNED,  -- flags for relphot, relastro, ??
     2192    flags       INT UNSIGNED,   -- flags for relphot, relastro, ??
    21912193    zpt_obs     FLOAT,          -- calibrated zero point for this release of
    21922194    zpt_stdev   FLOAT,          -- this exposure
     2195    mcal        FLOAT,          -- this exposure
     2196    ubercal_dist INT,           -- ubercal distance (from dvo calibration)
    21932197    path_base   VARCHAR(255),   -- path_base of any supporting files for this
    21942198                                -- release of this exposure.
     
    22732277) ENGINE=innodb DEFAULT CHARSET=latin1;
    22742278
     2279CREATE TABLE dqstatsRun (
     2280  dqstats_id BIGINT NOT NULL AUTO_INCREMENT,
     2281  state VARCHAR(64) DEFAULT NULL,
     2282  registered TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
     2283  label VARCHAR(64) DEFAULT NULL,
     2284  fault SMALLINT NOT NULL,
     2285  PRIMARY KEY  (dqstats_id),
     2286  KEY label (label),
     2287  KEY fault (fault)
     2288) ENGINE=InnoDB DEFAULT CHARSET=latin1;
     2289
     2290CREATE TABLE dqstatsContent (
     2291  dqstats_id BIGINT,
     2292  exp_id BIGINT,
     2293  chip_id BIGINT,
     2294  cam_id BIGINT,
     2295  warp_id BIGINT,
     2296  invalid TINYINT DEFAULT NULL,
     2297  KEY dqstats_id (dqstats_id),
     2298  KEY exp_id (exp_id),
     2299  KEY chip_id (chip_id),
     2300  KEY cam_id (cam_id),
     2301  KEY warp_id (warp_id),
     2302  FOREIGN KEY (dqstats_id) REFERENCES dqstatsRun (dqstats_id),
     2303  FOREIGN KEY (exp_id) REFERENCES rawExp (exp_id),
     2304  FOREIGN KEY (chip_id) REFERENCES chipRun (chip_id),
     2305  FOREIGN KEY (cam_id) REFERENCES camRun (cam_id),
     2306  FOREIGN KEY (warp_id) REFERENCES warpRun (warp_id)
     2307) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    22752308
    22762309
  • branches/eam_branches/ipp-20130711/ippTools/share/pxadmin_drop_tables.sql

    r35789 r36071  
    118118DROP TABLE IF EXISTS mergedvodbProcessed;
    119119DROP TABLE IF EXISTS mergedvodbRun;
     120DROP TABLE IF EXISTS dqstatsContent;
     121DROP TABLE IF EXISTS dqstatsRun;
    120122
    121123SET FOREIGN_KEY_CHECKS=1
  • branches/eam_branches/ipp-20130711/ippTools/share/regtool_pendingburntoolimfile.sql

    r31038 r36071  
    1212       newImfile.tmp_class_id,
    1313       summitExp.exp_type,
     14       rawImfile.camera AS camera,
    1415       rawImfile.dateobs,
    1516       rawImfile.obs_mode AS obs_mode,
  • branches/eam_branches/ipp-20130711/ippTools/share/releasetool_listrelexp.sql

    r35397 r36071  
    77    ippRelease.rel_id,
    88    ippRelease.priority,
     9    ippRelease.dvodb,
     10    ippRelease.ubercal_file,
    911    survey.surveyName,
    1012    rawExp.exp_name,
     
    1214    relExp.zpt_obs,
    1315    relExp.zpt_stdev,
     16    relExp.mcal,
     17    relExp.ubercal_dist,
    1418    relExp.path_base,
    1519    relExp.registered,
  • branches/eam_branches/ipp-20130711/ippTools/share/stacktool_tosummary.sql

    r28375 r36071  
    1 SELECT DISTINCT sass_id,rawExp.camera,stackRun.workdir,stackRun.tess_id,stackRun.state
     1SELECT sass_id,camera,workdir,tess_id,state FROM
     2(SELECT sass_id,rawExp.camera,stackRun.workdir,stackRun.tess_id,stackRun.state,
     3       sum((stackRun.state = 'full')) AS is_done, sum(1) AS is_defined
    24       FROM stackRun
    35       JOIN stackInputSkyfile ON stackRun.stack_id = stackInputSkyfile.stack_id
     
    1214WHERE stackRun.state = 'full' AND
    1315      stackSummary.projection_cell IS NULL
     16-- WHERE HOOK %s
     17GROUP BY sass_id
     18) AS T
     19WHERE is_done = is_defined
  • branches/eam_branches/ipp-20130711/ippTools/share/staticskytool_skycalresult.sql

    r34975 r36071  
    22    skycalResult.*,
    33    skycalRun.stack_id,
     4    skycalRun.workdir,
    45    stackRun.filter,
    56    skycalRun.state,
    67    skycalRun.label,
    78    skycalRun.data_group,
     9    skycalRun.dist_group,
    810    skycalRun.sky_id,
    911    skycell.*
  • branches/eam_branches/ipp-20130711/ippTools/share/warptool_scmap.sql

    r35150 r36071  
    88    chipProcessedImfile.chip_id,
    99    chipRun.state,
     10    chipRun.data_group as chip_data_group,
    1011    chipProcessedImfile.data_state,
    1112    chipProcessedImfile.fault AS chip_fault,
  • branches/eam_branches/ipp-20130711/ippTools/share/warptool_towarped.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20130711/ippTools/share/warptool_warped.sql

    r28627 r36071  
    1313    rawExp.decl,
    1414    rawExp.exp_time,
     15    camRun.cam_id,
    1516    magicDSRun.state AS dsRun_state,
    1617    IFNULL(magicDSRun.magic_ds_id, 0) AS magic_ds_id
Note: See TracChangeset for help on using the changeset viewer.