IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24451


Ignore:
Timestamp:
Jun 16, 2009, 3:20:11 PM (17 years ago)
Author:
Paul Price
Message:

Get camera name out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ippTools/share/pubtool_pending.sql

    r24449 r24451  
    22    publishToDo.*
    33FROM (
    4     SELECT
     4    -- Get the diffs
     5    -- The following is only appropriate for a diff where warp1 is set; otherwise it's more difficult to get the camera name
     6    SELECT DISTINCT
    57        publishRun.pub_id,
    68        publishClient.product,
    79        publishClient.stage,
    810        publishClient.workdir,
    9         diffRun.diff_id AS stage_id
     11        diffRun.diff_id AS stage_id,
     12        rawExp.camera
    1013    FROM publishRun
    1114    JOIN publishClient USING(client_id)
    1215    JOIN diffRun
    1316        ON diffRun.diff_id = publishRun.stage_id
     17    JOIN diffInputSkyfile USING(diff_id)
     18    -- Need to do something fancy here to get the camera name for a stack
     19    LEFT JOIN warpRun ON warpRun.warp_id = diffInputSkyfile.warp1
     20    JOIN fakeRun USING(fake_id)
     21    JOIN camRun USING(cam_id)
     22    JOIN chipRun USING(chip_id)
     23    JOIN rawExp USING(exp_id)
    1424    WHERE publishClient.stage = 'diff'
    1525        AND publishRun.state = 'new'
     
    2232        publishClient.stage,
    2333        publishClient.workdir,
    24         camRun.cam_id AS stage_id
     34        camRun.cam_id AS stage_id,
     35        rawExp.camera
    2536    FROM publishRun
    2637    JOIN publishClient USING(client_id)
    2738    JOIN camRun
    2839        ON camRun.cam_id = publishRun.stage_id
     40    JOIN chipRun USING(chip_id)
     41    JOIN rawExp USING(exp_id)
    2942    WHERE publishClient.stage = 'camera'
    3043        AND publishRun.state ='new'
Note: See TracChangeset for help on using the changeset viewer.