IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2013, 11:26:59 AM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130419/ippTools/share
Files:
10 edited

Legend:

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

  • branches/eam_branches/ipp-20130419/ippTools/share/camtool_find_pendingimfile.sql

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

    r33171 r35546  
    1313    USING(chip_id)
    1414WHERE
    15     ((chipRun.state = 'goto_cleaned' AND (chipProcessedImfile.data_state = 'full'
    16                                        OR chipProcessedImfile.data_state = 'update') AND chipProcessedImfile.quality = 0)
     15    ((chipRun.state = 'goto_cleaned'
     16        AND (chipProcessedImfile.data_state = 'full'
     17          OR chipProcessedImfile.data_state = 'update'
     18          OR chipProcessedImfile.data_state = 'error_cleaned')
     19        AND chipProcessedImfile.quality = 0)
    1720OR
    1821    (chipRun.state = 'goto_scrubbed' AND chipProcessedImfile.data_state != 'scrubbed')
  • branches/eam_branches/ipp-20130419/ippTools/share/chiptool_setimfiletoupdate.sql

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

    r35436 r35546  
    1 CREATE TABLE dbversion (
     1eREATE TABLE dbversion (
    22    schema_version VARCHAR(64),
    33    updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP
     
    21722172    priority    INT,
    21732173    PRIMARY KEY(rel_id),
     2174    UNIQUE KEY(surveyID, release_name),
    21742175    KEY(release_name),
    21752176    KEY(release_state),
     
    21962197    PRIMARY KEY (relexp_id),
    21972198    FOREIGN KEY(rel_id) REFERENCES ippRelease(rel_id),
     2199    UNIQUE KEY(rel_id, exp_id),
    21982200    KEY (state),
    21992201    KEY (fault),
     
    22242226    time_stamp  DATETIME,
    22252227    PRIMARY KEY (relstack_id),
     2228    UNIQUE KEY (rel_id, tess_id, skycell_id, filter, stack_type, mjd_obs),
    22262229    KEY (tess_id, skycell_id),
    2227     KEY (rel_id, tess_id, skycell_id, filter, mjd_obs),
    22282230    KEY (stack_type),
    22292231    KEY (mjd_obs),
  • branches/eam_branches/ipp-20130419/ippTools/share/releasetool_definerelstack.sql

    r35196 r35546  
    66    stackRun.tess_id,
    77    stackRun.filter,
    8     0 AS mjd_obs,
     8    stackSumSkyfile.mjd_obs,
    99    0 AS zpt_obs,
    1010    0 AS zpt_stdev
     
    1212FROM ippRelease
    1313JOIN stackRun
    14 LEFT JOIN relStack AS previousRelStack USING(rel_id, tess_id, skycell_id, filter)
    15 
     14JOIN stackSumSkyfile using(stack_id)
     15LEFT JOIN relStack AS previousRelStack
     16    ON previousRelStack.rel_id = ippRelease.rel_id
     17    AND previousRelStack.tess_id = stackRun.tess_id
     18    AND previousRelStack.skycell_id = stackRun.skycell_id
     19    AND previousRelStack.filter = stackRun.filter
     20    -- JOIN hook %s
    1621WHERE previousRelStack.relstack_id IS NULL
     22    AND stackRun.state ='full'
     23    AND stackSumSkyfile.quality = 0
     24    AND stackSumSkyfile.fault = 0
  • branches/eam_branches/ipp-20130419/ippTools/share/releasetool_definerelstack_with_skycal.sql

    r35196 r35546  
    1313JOIN stackRun
    1414JOIN stackSumSkyfile USING(stack_id)
    15 LEFT JOIN relStack AS previousRelStack USING(rel_id, tess_id, skycell_id, filter)
    1615JOIN skycalRun ON skycalRun.stack_id = stackRun.stack_id
    1716JOIN skycalResult ON skycalRun.skycal_id = skycalResult.skycal_id
     17-- LEFT JOIN relStack AS previousRelStack USING(rel_id, tess_id, skycell_id, filter)
     18LEFT JOIN relStack AS previousRelStack
     19    ON ippRelease.rel_id = previousRelStack.rel_id
     20    AND stackRun.tess_id = previousRelStack.tess_id
     21    AND stackRun.skycell_id = previousRelStack.skycell_id
     22    AND stackRun.filter = previousRelStack.filter
     23-- JOIN Hook %s
    1824
    1925WHERE previousRelStack.relstack_id IS NULL
     26    AND skycalRun.state = 'full'
  • branches/eam_branches/ipp-20130419/ippTools/share/releasetool_listrelstack.sql

    r35397 r35546  
    77    stackRun.state AS stack_state,
    88    stackRun.data_group AS stack_data_group,
     9    skycalResult.fwhm_major,
    910    skycalResult.path_base AS skycal_path_base,
    1011    skycalRun.data_group AS skycal_data_group,
  • branches/eam_branches/ipp-20130419/ippTools/share/warptool_pendingcleanupskyfile.sql

    r33171 r35546  
    1010    USING(warp_id)
    1111WHERE
    12    ((warpRun.state = 'goto_cleaned'  AND (warpSkyfile.data_state = 'full'
    13                                       OR  warpSkyfile.data_state = 'update')
    14     AND warpSkyfile.quality = 0)
     12   ((warpRun.state = 'goto_cleaned' 
     13       AND (warpSkyfile.data_state = 'full'
     14          OR  warpSkyfile.data_state = 'error_cleaned'
     15          OR  warpSkyfile.data_state = 'update')
     16       AND warpSkyfile.quality = 0)
    1517    OR
    1618    (warpRun.state = 'goto_scrubbed' AND warpSkyfile.data_state != 'scrubbed')
  • branches/eam_branches/ipp-20130419/ippTools/share/warptool_towarped.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.