IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 16, 2024, 6:55:34 AM (3 years ago)
Author:
eugene
Message:

working on xcfftool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/ippTools/share/xcfftool_definebyquery.sql

    r42587 r42594  
    1313    JOIN skycell                USING (tess_id, skycell_id)
    1414    -- join hook %s
     15    -- for no-rerun:
     16    -- LEFT JOIN xcForceRun ON xcForceRun.xccal_id = %s.xccalRun.xccal_id
    1517WHERE
    16     %s.xcstackCamera.camera = 'test_cam1' AND
     18    -- the first %s below should be filled with the xcamera database
     19    -- the second should be the name of the camera corresponding to the
     20    -- database in which the tool is run
     21    %s.xcstackCamera.camera = '%s' AND
    1722    %s.xccalRun.state = 'full' AND
    1823    %s.xccalResult.quality = 0
    19 
     24-- 'where' string is appended here
     25    -- for no-rerun, also append:
     26    -- AND xcff_id IS NULL
    2027
    2128-- this query is run in the database in which the original stacks were made (e.g., gpc1)
    22 -- it refers to the database used to generate the xcstacks (e.g., xcamera)
     29-- the external database (%s in front of the xcstackRun & xccalRun tables) refers to the database
     30-- used to generate the xcstacks (e.g., xcamera)
Note: See TracChangeset for help on using the changeset viewer.