IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2010, 9:39:48 AM (16 years ago)
Author:
bills
Message:

changes to save streaks file in nebulous

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/magic.pro

    r27620 r29494  
    288288    book getword magicToProcess $pageName camera -var CAMERA
    289289    book getword magicToProcess $pageName workdir -var WORKDIR_TEMPLATE
     290    book getword magicToProcess $pageName raw_workdir -var RAW_TEMPLATE
     291    book getword magicToProcess $pageName exp_name -var EXP_NAME
    290292    book getword magicToProcess $pageName dbname -var DBNAME
    291293
     
    308310    sprintf baseroot "%s/%s/%s.mgc.%s" $WORKDIR $EXP_ID $EXP_ID $MAGIC_ID
    309311
     312    if ("$NODE" == "root")
     313        # This is the root node, put the streaks file into the rawExps workdir
     314        # which is presumably in nebulous and thus will be replicatable
     315        set.workdir.by.camera $CAMERA FPA $RAW_TEMPLATE $default_host RAW_WORKDIR
     316        sprintf final_outroot "%s/%s.%s/%s.%s.mgc.%s" $RAW_WORKDIR $EXP_NAME $EXP_ID $EXP_NAME $EXP_ID $MAGIC_ID
     317
     318        $EXTRA_ARGS = --final-outroot $final_outroot
     319    else
     320        $EXTRA_ARGS = ""
     321    end
     322
    310323    $logfile = $baseroot.$NODE.log
    311324    if ("$logfile" == "")
     
    319332    mkdir $outpath
    320333
    321     $run = magic_process.pl --magic_id $MAGIC_ID --camera $CAMERA --node $NODE --baseroot $baseroot --logfile $logfile
     334    $run = magic_process.pl --magic_id $MAGIC_ID --camera $CAMERA --node $NODE --baseroot $baseroot --logfile $logfile $EXTRA_ARGS
    322335    add_standard_args run
    323336
Note: See TracChangeset for help on using the changeset viewer.