IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30756


Ignore:
Timestamp:
Feb 24, 2011, 2:05:21 PM (15 years ago)
Author:
bills
Message:

change @HOST@ to the chosen host

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/destreak.pro

    r30669 r30756  
    204204    book getword magicToDS $pageName dbname -var DBNAME
    205205
    206     sprintf logfile "%s/%s.mds.%s.%s.%s.log" $OUTROOT $EXP_ID $MAGIC_DS_ID $STAGE_ID $COMPONENT
    207206
    208207    substr $COMPONENT 0 3 COMP_HEAD
    209208    if ("$COMP_HEAD" == "sky")
    210209        set.host.for.skycell $COMPONENT
     210        set.workdir.by.skycell $COMPONENT $OUTROOT $default_host WORKDIR
    211211    else
    212212        # assume component is a class_id, if not we will default to anyhost
    213213        set.host.for.camera $CAMERA $COMPONENT
    214     end
     214        set.workdir.by.camera $CAMERA $COMPONENT $OUTROOT $default_host WORKDIR
     215    end
     216
     217    sprintf logfile "%s/%s.mds.%s.%s.%s.log" $WORKDIR $EXP_ID $MAGIC_DS_ID $STAGE_ID $COMPONENT
    215218
    216219    # TODO: do not add recoveryroot or replace if they are null or zero
    217220
    218     $run = magic_destreak.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --exp_id $EXP_ID --streaks_path_base $STREAKS_PATH_BASE --inv_streaks_path_base $INV_STREAKS_PATH_BASE --streaks $STREAKS --inv_streaks $INV_STREAKS --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --uri $URI --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --recoveryroot $RECROOT --replace $REPLACE --magicked $MAGICKED --run-state $RUN_STATE
     221    $run = magic_destreak.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --exp_id $EXP_ID --streaks_path_base $STREAKS_PATH_BASE --inv_streaks_path_base $INV_STREAKS_PATH_BASE --streaks $STREAKS --inv_streaks $INV_STREAKS --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --uri $URI --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $WORKDIR --logfile $logfile --recoveryroot $RECROOT --replace $REPLACE --magicked $MAGICKED --run-state $RUN_STATE
    219222
    220223    add_standard_args run
     
    407410    book getword magicDSToRevert $pageName dbname -var DBNAME
    408411
    409     sprintf logfile "%s/%s.mds.revert.%s.%s.%s.log" $OUTROOT $EXP_ID $MAGIC_DS_ID $STAGE_ID $COMPONENT
    410 
    411412    substr $COMPONENT 0 3 COMP_HEAD
    412413    if ("$COMP_HEAD" == "sky")
    413414        set.host.for.skycell $COMPONENT
     415        set.workdir.by.skycell $COMPONENT $OUTROOT $default_host WORKDIR
    414416    else
    415417        # assume component is a class_id, if not we will default to anyhost
    416418        set.host.for.camera $CAMERA $COMPONENT
    417     end
    418 
    419     $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 --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS --magicked $MAGICKED --run-state $RUN_STATE --recovery_path_base $RECOVERY_PATH_BASE
     419        set.workdir.by.camera $CAMERA $COMPONENT $OUTROOT $default_host WORKDIR
     420    end
     421    sprintf logfile "%s/%s.mds.revert.%s.%s.%s.log" $WORKDIR $EXP_ID $MAGIC_DS_ID $STAGE_ID $COMPONENT
     422
     423    $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 --cam_reduction $CAM_REDUCTION --outroot $WORKDIR --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS --magicked $MAGICKED --run-state $RUN_STATE --recovery_path_base $RECOVERY_PATH_BASE
    420424
    421425    add_standard_args run
Note: See TracChangeset for help on using the changeset viewer.