IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13969


Ignore:
Timestamp:
Jun 25, 2007, 10:47:22 AM (19 years ago)
Author:
jhoblitt
Message:

overhaul new* -> raw* table transistions to keep the complete history

Location:
branches/backtrack/ippTools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/backtrack/ippTools/scripts/camtest.sh

    r12188 r13969  
    88camtool -pendingimfile || exit 1
    99
    10 camtool -addprocessedexp -cam_id 1 -uri file:///cam -bg 1 -bg_stdev 2 -bg_mean_stdev 3 -sigma_ra 1 -sigma_dec 2 -nastro 42 -path_base file:///foo -zp_mean 1 -zp_stdev 2 || exit 1
    11 camtool -addprocessedexp -cam_id 2 -uri file:///cam -bg 1 -bg_stdev 2 -bg_mean_stdev 3 -sigma_ra 1 -sigma_dec 2 -nastro 42 -path_base file:///foo -zp_mean 1 -zp_stdev 2 || exit 1
     10camtool -addprocessedexp -cam_id 1 -chip_id 1 -uri file:///cam -bg 1 -bg_stdev 2 -bg_mean_stdev 3 -sigma_ra 1 -sigma_dec 2 -nastro 42 -path_base file:///foo -zp_mean 1 -zp_stdev 2 || exit 1
     11camtool -addprocessedexp -cam_id 2 -chip_id 2 -uri file:///cam -bg 1 -bg_stdev 2 -bg_mean_stdev 3 -sigma_ra 1 -sigma_dec 2 -nastro 42 -path_base file:///foo -zp_mean 1 -zp_stdev 2 || exit 1
  • branches/backtrack/ippTools/scripts/regtest.sh

    r12259 r13969  
    1111
    1212for ID in `seq 0 3`; do
    13     $inject -newImfile -exp_tag $exp_tag1 -class OTA -class_id $ID -uri file://$ID || exit 1
     13    $inject -newImfile -exp_tag $exp_tag1 -class_id $ID -uri file://$ID || exit 1
    1414done;
     15
     16$inject -updatenewExp -exp_tag $exp_tag1 -state run
    1517
    1618exp_tag2=`$inject -newExp -exp_id t11 -inst gpc -telescope ps1 -imfiles 4 -workdir file::///some/path -simple` || exit 1
    1719
    1820for ID in `seq 0 3`; do
    19     $inject -newImfile -exp_tag $exp_tag2 -class OTA -class_id $ID -uri file://$ID || exit 1
     21    $inject -newImfile -exp_tag $exp_tag2 -class_id $ID -uri file://$ID || exit 1
    2022done;
     23
     24$inject -updatenewExp -exp_tag $exp_tag2 -state run
    2125
    2226$regtool -pendingimfile || exit 1
  • branches/backtrack/ippTools/share/regtool_find_unprocessed_exp.sql

    r12086 r13969  
    1 SELECT
    2    newExp.*
    3 FROM newExp
    4 LEFT JOIN newImfile
    5    USING(exp_tag)
    6 LEFT JOIN rawExp
    7    USING(exp_tag)
     1SELECT DISTINCT * FROM
     2    (SELECT
     3       newExp.*
     4    FROM newExp
     5    JOIN newImfile
     6       USING(exp_tag)
     7    LEFT JOIN rawExp
     8       USING(exp_tag)
     9    WHERE
     10        newExp.state = 'run'
     11        AND rawExp.exp_tag IS NULL
     12        AND newExp.imfiles =
     13        (SELECT COUNT(exp_tag) FROM rawImfile
     14            WHERE rawImfile.exp_tag = newExp.exp_tag)) as Foo
    815WHERE
    9     newExp.exp_tag IS NOT NULL
    10     AND newImfile.exp_tag IS NULL
    11     AND rawExp.exp_tag IS NULL
    12     AND newExp.imfiles =
    13     (SELECT COUNT(exp_tag) FROM rawImfile
    14         WHERE rawImfile.exp_tag = newExp.exp_tag)
    15     AND newExp.exp_tag = '%s'
     16    exp_tag = '%s'
  • branches/backtrack/ippTools/share/regtool_find_unprocessed_imfile.sql

    r12086 r13969  
    1 SELECT
    2     *
    3 FROM
    4     (SELECT newImfile.* FROM newImfile
    5         LEFT JOIN newExp USING(exp_tag)
    6         LEFT JOIN rawExp USING(exp_tag)
    7         WHERE newExp.exp_tag IS NOT NULL
     1SELECT DISTINCT * FROM
     2    (SELECT
     3        newImfile.*
     4    FROM newImfile
     5    JOIN newExp
     6        USING(exp_tag)
     7    LEFT JOIN rawExp
     8        USING(exp_tag)
     9    WHERE
     10        newExp.state = 'run'
    811        AND rawExp.exp_tag IS NULL) as Foo
  • branches/backtrack/ippTools/share/regtool_pendingexp.sql

    r12086 r13969  
    22    newExp.*
    33FROM newExp
    4 LEFT JOIN newImfile
     4JOIN newImfile
    55    USING(exp_tag)
    66LEFT JOIN rawExp
    77    USING(exp_tag)
    88WHERE
    9     newImfile.exp_tag IS NULL
     9    newExp.state = 'run'
    1010    AND rawExp.exp_tag IS NULL
    1111    AND newExp.imfiles =
Note: See TracChangeset for help on using the changeset viewer.