IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23395


Ignore:
Timestamp:
Mar 18, 2009, 10:25:01 AM (17 years ago)
Author:
bills
Message:

pass magicked status of rawImfile to script
set magicked status for the chipProcessedImfile when it's created

Location:
trunk
Files:
2 edited

Legend:

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

    r23295 r23395  
    3737# Parse the command-line arguments
    3838my ( $exp_id, $chip_id, $class_id, $chip_imfile_id, $uri, $camera, $outroot, $dbname, $run_state, $reduction, $threads, $verbose,
    39      $no_update, $no_op, $redirect );
     39     $no_update, $no_op, $redirect, $magicked );
    4040GetOptions(
    4141    'exp_id=s'          => \$exp_id,    # Exposure identifier
     
    4949    'reduction=s'       => \$reduction, # Reduction class
    5050    'run-state=s'       => \$run_state, # current state of the run (new, update)
     51    'magicked'          => \$magicked,  # magicked state of intput file
    5152    'threads=s'         => \$threads,   # Number of threads to use for ppImage
    5253    'verbose'           => \$verbose,   # Print to stdout
     
    215216    $command .= " -uri $outputImage";
    216217    $command .= " -path_base $outroot";
     218    $command .= " -magicked" if $magicked;
    217219    $command .= " -hostname $host" if defined $host;
    218220    $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippTasks/chip.pro

    r23282 r23395  
    142142    book getword chipPendingImfile $pageName exp_id -var EXP_ID
    143143    book getword chipPendingImfile $pageName exp_tag -var EXP_TAG
     144    book getword chipPendingImfile $pageName raw_magicked -var RAW_MAGICKED
    144145    book getword chipPendingImfile $pageName chip_id -var CHIP_ID
    145146    book getword chipPendingImfile $pageName chip_imfile_id -var CHIP_IMFILE_ID
     
    151152    book getword chipPendingImfile $pageName state -var RUN_STATE
    152153
     154    if ("$RAW_MAGICKED" == "T")
     155        $MAGICKED_ARG = "-magicked"
     156    else
     157        $MAGICKED_ARG = ""
     158    end
     159
    153160    # specify choice of local or remote host based on camera and chip (class_id)
    154161    set.host.for.camera $CAMERA $CLASS_ID
     
    171178    stderr $LOGDIR/chip.imfile.log
    172179
    173     $run = chip_imfile.pl --threads @MAX_THREADS@ --exp_id $EXP_ID --chip_id $CHIP_ID --chip_imfile_id $CHIP_IMFILE_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA --run-state $RUN_STATE --outroot $outroot --redirect-output
     180    $run = chip_imfile.pl --threads @MAX_THREADS@ --exp_id $EXP_ID --chip_id $CHIP_ID --chip_imfile_id $CHIP_IMFILE_ID --class_id $CLASS_ID --uri $URI --camera $CAMERA --run-state $RUN_STATE $MAGICKED_ARG --outroot $outroot --redirect-output
    174181    if ("$REDUCTION" != "NULL")
    175182      $run = $run --reduction $REDUCTION
Note: See TracChangeset for help on using the changeset viewer.