IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27015


Ignore:
Timestamp:
Feb 19, 2010, 2:29:48 PM (16 years ago)
Author:
bills
Message:

output the bothways status of a run from magicdstool -torevert and
pass the value to magic_destreak_revert.pl

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/magic_destreak_revert.pl

    r26976 r27015  
    3636
    3737# Parse the command-line arguments
    38 my ($magic_ds_id, $camera, $streaks, $stage, $stage_id, $component, $uri, $path_base, $inverse, $cam_path_base);
     38my ($magic_ds_id, $camera, $streaks, $stage, $stage_id, $component, $uri, $path_base, $bothways, $cam_path_base);
    3939my ($outroot, $recoveryroot, $replace, $release, $bytes, $md5sum);
    4040my ($dbname, $save_temps, $verbose, $no_update, $no_op, $logfile);
     
    5151           'recoveryroot=s' => \$recoveryroot,# "directory" for saving the images of excised pixels
    5252           'replace=s'      => \$replace,    # replace the input images with the results.
     53           'bothways=s'     => \$bothways,   # run has inverse files (bothways diff)
    5354           'save-temps'     => \$save_temps, # Save temporary files?
    5455           'dbname=s'       => \$dbname,     # Database name
     
    193194revert_files($replace, $image, $mask, $weight, $sources, $astrom, $bimage, $bmask, $bweight, $bsources, $bastrom);
    194195
    195 if ($stage eq "diff" and $inverse) {
     196if ($stage eq "diff" and $bothways) {
    196197    my $name = "PPSUB.INVERSE";
    197198    $image  = $ipprc->filename($name, $path_base);
  • trunk/ippTasks/destreak.pro

    r27005 r27015  
    411411#    book getword magicDSToRevert $pageName recoveryroot -var RECROOT
    412412    book getword magicDSToRevert $pageName re_place -var REPLACE
     413    book getword magicDSToRevert $pageName bothways -var BOTHWAYS
    413414    book getword magicDSToRevert $pageName dbname -var DBNAME
    414415
     
    423424    end
    424425
    425     $run = magic_destreak_revert.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --outroot $OUTROOT --logfile $logfile --replace $REPLACE
     426    $run = magic_destreak_revert.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --outroot $OUTROOT --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS
    426427
    427428    add_standard_args run
  • trunk/ippTools/share/magicdstool_torevert_camera.sql

    r25423 r27015  
    1111    camProcessedExp.path_base,
    1212    camProcessedExp.path_base AS cam_path_base,
     13    0 AS bothways,
    1314    0 AS bytes,
    1415    0 AS md5sum
  • trunk/ippTools/share/magicdstool_torevert_chip.sql

    r25423 r27015  
    1111    chipProcessedImfile.path_base,
    1212    camProcessedExp.path_base AS cam_path_base,
     13    0 AS bothways,
    1314    0 AS bytes,
    1415    0 AS md5sum
  • trunk/ippTools/share/magicdstool_torevert_diff.sql

    r25423 r27015  
    1111    diffSkyfile.path_base,
    1212    "NULL" AS cam_path_base,
     13    CAST(diffRun.bothways AS SIGNED) AS bothways,
    1314    0 AS bytes,
    1415    0 AS md5sum
     
    1718    JOIN magicDSFile USING(magic_ds_id)
    1819    JOIN diffSkyfile ON (stage_id = diffSkyfile.diff_id AND component = skycell_id)
     20    JOIN diffRun ON diffSkyfile.diff_id = diffRun.diff_id
    1921    JOIN rawExp USING(exp_id)
    2022WHERE magicDSRun.stage = 'diff'
  • trunk/ippTools/share/magicdstool_torevert_raw.sql

    r25423 r27015  
    1111    rawImfile.uri AS path_base,
    1212    NULL AS cam_path_base,
     13    0 AS bothways,
    1314    bytes,
    1415    md5sum
  • trunk/ippTools/share/magicdstool_torevert_warp.sql

    r25423 r27015  
    1111    warpSkyfile.path_base,
    1212    "NULL" AS cam_path_base,
     13    0 AS bothways,
    1314    0 AS bytes,
    1415    0 AS md5sum
Note: See TracChangeset for help on using the changeset viewer.