IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2011, 11:46:43 AM (15 years ago)
Author:
heather
Message:

added 'staticsky_multi' stage to addstar to allow processing of staticsky
(multi_filter).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/addstar.pro

    r31376 r32832  
    2626    active true
    2727  end
     28  task addstar.exp.load.staticsky_multi
     29    active true
     30  end 
    2831  task addstar.exp.run
    2932    active true
     
    3942  end
    4043  task addstar.exp.load.staticsky
     44    active false
     45  end
     46  task addstar.exp.load.staticsky_multi
    4147    active false
    4248  end
     
    175181  end
    176182end
     183
    177184task           addstar.exp.load.staticsky
    178185  host         local
     
    229236  end
    230237end
     238
     239task           addstar.exp.load.staticsky_multi
     240  host         local
     241
     242  periods      -poll $LOADPOLL
     243  periods      -exec $LOADEXEC
     244  periods      -timeout 30
     245  npending     1
     246
     247  stdout NULL
     248  stderr $LOGDIR/addstar.exp.log
     249
     250  task.exec
     251   # if ($LABEL:n == 0) break
     252    $run = addtool -pendingexp -stage staticsky_multi
     253    if ($DB:n == 0)
     254      option DEFAULT
     255    else
     256      # save the DB name for the exit tasks
     257      option $DB:$addstar_DB
     258      $run = $run -dbname $DB:$addstar_DB
     259      $addstar_DB ++
     260      if ($addstar_DB >= $DB:n) set addstar_DB = 0
     261    end
     262    add_poll_args run
     263    add_poll_labels run
     264    command $run
     265  end
     266
     267  # success
     268  task.exit    0
     269    # convert 'stdout' to book format
     270    ipptool2book stdout addPendingExp -key add_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     271    if ($VERBOSE > 2)
     272      book listbook addPendingExp
     273    end
     274
     275    # delete existing entries in the appropriate pantaskStates
     276    process_cleanup addPendingExp
     277  end
     278
     279  # default exit status
     280  task.exit    default
     281    showcommand failure
     282  end
     283
     284  task.exit    crash
     285    showcommand crash
     286  end
     287
     288  # operation times out?
     289  task.exit    timeout
     290    showcommand timeout
     291  end
     292end
     293
     294
    231295# run the addstar script on pending exposures
    232296task           addstar.exp.run
     
    252316    book getword addPendingExp $pageName exp_tag -var EXP_TAG
    253317    book getword addPendingExp $pageName add_id -var ADD_ID
     318    book getword addPendingExp $pageName stage_extra1 -var STAGE_EXTRA1
    254319    book getword addPendingExp $pageName stageroot -var STAGEROOT
    255320    book getword addPendingExp $pageName stage -var STAGE 
     
    285350        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
    286351    end
     352    if ("$STAGE" == "staticsky_multi")
     353        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
     354    end
    287355    if ("$STAGE" == "stack")
    288356        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
     
    296364    if ("$REDUCTION" != "NULL")
    297365      $run = $run --reduction $REDUCTION
     366    end
     367    if ("$STAGE" == "staticsky_multi")
     368      $run = $run --multi_num $STAGE_EXTRA1
    298369    end
    299370    if ("$IMAGE_ONLY" == "T")
Note: See TracChangeset for help on using the changeset viewer.