Changeset 41543 for trunk/ippTasks/pantasks.pro
- Timestamp:
- Apr 9, 2021, 4:03:31 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/pantasks.pro (modified) (23 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/pantasks.pro
r37835 r41543 41 41 42 42 # user functions to manage databases 43 macro add.database 43 macro add.database -c "add a database to this pantasks" 44 44 if ($0 != 2) 45 45 echo "USAGE: add.database (db)" … … 66 66 end 67 67 68 macro del.database 68 macro del.database -c "remove a database from this pantasks" 69 69 if ($0 != 2) 70 70 echo "USAGE: del.database (db)" … … 78 78 end 79 79 80 macro show.databases 80 macro show.databases -c "list the databases for this pantasks" 81 81 if ($0 != 1) 82 82 echo "USAGE: show.databases" … … 97 97 98 98 # user functions to manipulate labels 99 macro add.label 99 macro add.label -c "add a label to this pantasks" 100 100 if ($0 != 2) 101 101 echo "USAGE: add.label (label)" … … 122 122 end 123 123 124 macro del.label 124 macro del.label -c "remove a label from this pantasks" 125 125 if ($0 != 2) 126 126 echo "USAGE: del.label (label)" … … 134 134 end 135 135 136 macro show.labels 136 macro show.labels -c "list labels for this pantasks" 137 137 if ($0 != 1) 138 138 echo "USAGE: show.labels" … … 152 152 end 153 153 154 macro save.labels 154 macro save.labels -c "save the currently defined labels in the file labels.list" 155 155 if ($0 != 1) 156 156 echo "USAGE: save.labels" … … 171 171 end 172 172 173 macro load.labels 173 macro load.labels -c "read a list of labels from the file labels.list" 174 174 if ($0 != 1) 175 175 echo "USAGE: load.labels" … … 190 190 end 191 191 192 ## XXX these are very Pan-STARRS specific 192 193 macro init.isp 193 194 list DB -add isp … … 224 225 # need the ability to activate or deactivate specific tasks... 225 226 227 # XXX move this to the detrend pantasks: 226 228 macro detrend.on 227 229 detproc.on … … 264 266 end 265 267 268 # XXX move this to the stdscience pantasks, remove detrend & flatcorr 266 269 macro all.on 267 270 detrend.on … … 288 291 end 289 292 293 # move to specific pantasks inputs 290 294 macro module.tasks 291 295 module register.pro … … 315 319 end 316 320 317 macro showcommand 321 macro showcommand -c "print out the current command (used within tasks)" 318 322 local n 319 323 … … 338 342 339 343 # Add standard arguments to the poll functions 340 macro add_poll_args 344 macro add_poll_args -c "add standard poll options to commands (used within tasks)" 341 345 if ($0 != 2) 342 346 echo "Must pass in the command of interest, and this function will supplement" … … 350 354 end 351 355 352 macro add_poll_labels 356 macro add_poll_labels -c "add standard labels to poll functions (used within tasks)" 353 357 if ($0 != 2) 354 358 echo "Must pass in the command of interest, and this function will supplement" … … 368 372 end 369 373 370 macro add_standard_args 374 macro add_standard_args -c "add standard options (dbname, no-op, no-update) to commands (used within tasks)" 371 375 if ($0 != 2) 372 376 echo "Must pass in the command of interest, and this function will supplement" … … 394 398 395 399 396 macro process_exit 400 macro process_exit -c "common handler for task exit" 397 401 if ($0 != 4) 398 402 echo "USAGE: process_exit (bookName) (pageName) (exitCode)" … … 475 479 476 480 ## XXX for the moment, remove all errors 477 macro process_cleanup 481 macro process_cleanup -c "standard handler to cleanup the books" 478 482 if ($0 != 2) 479 483 echo "USAGE: process_cleanup (bookname)" … … 495 499 end 496 500 497 macro set.poll 501 macro set.poll -c "set the POLL_LIMIT value" 498 502 if ($0 != 2) 499 503 echo "USAGE:set.poll (value)" … … 504 508 end 505 509 506 macro get.poll 510 macro get.poll -c "get the POLL_LIMIT value" 507 511 echo "poll limit: $POLL_LIMIT" 508 512 end … … 521 525 end 522 526 523 524 527 macro change_polllimit -c "set the POLL_LIMIT value (same as set.poll)" 528 $POLL_LIMIT = $1 529 end 530 531 macro change_runexec 532 $RUNEXEC = $1 533 end 534 535 macro change_runpoll 536 $RUNPOLL = $1 537 end 538 539 macro print_polllimit 540 echo $POLL_LIMIT 541 end 542 543 macro print_runexec 544 echo $RUNEXEC 545 end 546 547 macro print_runpoll 548 echo $RUNPOLL 549 end 550 551 macro change_loadexec 552 $LOADEXEC = $1 553 end 554 555 macro change_loadpoll 556 $LOADPOLL = $1 557 end 558 559 macro print_loadexec 560 echo $LOADEXEC 561 end 562 563 macro print_loadpoll 564 echo $LOADPOLL 565 end 525 566 526 567 macro set.verbosity … … 752 793 end 753 794 795 macro show.books 796 book list 797 end 798 754 799 macro del.page.from.book 755 800 if ($0 != 3) … … 761 806 end 762 807 763 macro tasks.revert.off 764 chip.revert.off 765 camera.revert.off 766 fake.revert.off 767 warp.revert.off 768 diff.revert.off 769 stack.revert.off 770 end 771 macro tasks.revert.on 772 chip.revert.on 773 camera.revert.on 774 fake.revert.on 775 warp.revert.on 776 diff.revert.on 777 stack.revert.on 778 end 779 808 macro set.opihi.verbose 809 if ($0 != 2) 810 echo "USAGE: set.opihi.verbose (on/off)" 811 break 812 end 813 814 opihi verbose $1 815 end 816 817 # identical to 'set.opihi.verbose' 818 macro opihi.verbosity 819 opihi verbose $1 820 end 821 822 macro set.server.verbose 823 if ($0 != 2) 824 echo "USAGE: set.server.verbose (on/off)" 825 break 826 end 827 828 verbose $1 829 end 830 831 macro set.output 832 if ($0 != 2) 833 echo "USAGE: set.output (destination)" 834 break 835 end 836 output $1 837 end 838 839 macro show.output 840 output -current currentOutput 841 echo $currentOutput 842 end 843 844
Note:
See TracChangeset
for help on using the changeset viewer.
