IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28557


Ignore:
Timestamp:
Jun 30, 2010, 10:04:25 AM (16 years ago)
Author:
heather
Message:

detrend reverts

Location:
trunk/ippTasks
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/detrend.norm.pro

    r23480 r28557  
    6464end
    6565
     66macro detnorm.revert.off
     67  task detrend.norm.revert
     68    active false
     69  end
     70  task detrend.normexp.revert
     71    active false
     72  end
     73  task detrend.normstat.revert
     74    active false
     75  end
     76end
     77
     78macro detnorm.revert.on
     79  task detrend.norm.revert
     80    active true
     81  end
     82  task detrend.normexp.revert
     83    active true
     84  end
     85  task detrend.normstat.revert
     86    active true
     87  end
     88end
     89
     90
    6691# these variables will cycle through the known database names
    6792$detPendingNormStatImfile_DB = 0
    6893$detPendingNormImfile_DB = 0
    6994$detPendingNormExp_DB = 0
     95$detPendingNormStatImfile_DB_revert = 0
     96$detPendingNormImfile_DB_revert = 0
     97$detPendingNormExp_DB_revert = 0
    7098
    7199# select images ready for copy
     
    440468  end
    441469end
     470
     471task detrend.norm.revert
     472  host         local
     473
     474  periods      -poll 60.0
     475  periods      -exec 1800.0
     476  periods      -timeout 120.0
     477  npending     1
     478
     479  stdout NULL
     480  stderr $LOGDIR/revert.log
     481
     482  task.exec
     483
     484    $run = dettool -revertnormalizedimfile -all
     485    if ($DB:n == 0)
     486      option DEFAULT
     487    else
     488      # save the DB name for the exit tasks
     489      option $DB:$detPendingNormImfile_DB_revert
     490      $run = $run -dbname $DB:$detPendingNormImfile_DB_revert
     491      $detPendingNormImfile_DB_revert ++
     492      if ($detPendingNormImfile_DB_revert >= $DB:n) set detPendingNormImfile_DB_revert = 0
     493    end
     494    echo $run
     495    command $run
     496  end
     497
     498  # success
     499  task.exit    0
     500  end
     501
     502  # locked list
     503  task.exit    default
     504    showcommand failure
     505  end
     506
     507  task.exit    crash
     508    showcommand crash
     509  end
     510
     511  # operation times out?
     512  task.exit    timeout
     513    showcommand timeout
     514  end
     515end
     516
     517task detrend.normexp.revert
     518  host         local
     519
     520  periods      -poll 60.0
     521  periods      -exec 1800.0
     522  periods      -timeout 120.0
     523  npending     1
     524
     525  stdout NULL
     526  stderr $LOGDIR/revert.log
     527
     528  task.exec
     529
     530    $run = dettool -revertnormalizedexp -all
     531    if ($DB:n == 0)
     532      option DEFAULT
     533    else
     534      # save the DB name for the exit tasks
     535      option $DB:$detPendingNormExp_DB_revert
     536      $run = $run -dbname $DB:$detPendingNormExp_DB_revert
     537      $detPendingNormExp_DB_revert ++
     538      if ($detPendingNormExp_DB_revert >= $DB:n) set detPendingNormExp_DB_revert = 0
     539    end
     540    echo $run
     541    command $run
     542  end
     543
     544  # success
     545  task.exit    0
     546  end
     547
     548  # locked list
     549  task.exit    default
     550    showcommand failure
     551  end
     552
     553  task.exit    crash
     554    showcommand crash
     555  end
     556
     557  # operation times out?
     558  task.exit    timeout
     559    showcommand timeout
     560  end
     561end
     562
     563task detrend.normstat.revert
     564  host         local
     565
     566  periods      -poll 60.0
     567  periods      -exec 1800.0
     568  periods      -timeout 120.0
     569  npending     1
     570
     571  stdout NULL
     572  stderr $LOGDIR/revert.log
     573
     574  task.exec
     575 
     576    $run = dettool -revertnormalizedstat -all
     577    if ($DB:n == 0)
     578      option DEFAULT
     579    else
     580      # save the DB name for the exit tasks
     581      option $DB:$detPendingNormStatImfile_DB_revert
     582      $run = $run -dbname $DB:$detPendingNormStatImfile_DB_revert
     583      $detPendingNormStatImfile_DB_revert ++
     584      if ($detPendingNormStatImfile_DB_revert >= $DB:n) set detPendingNormStatImfile_DB_revert = 0
     585    end
     586    echo $run
     587    command $run
     588  end
     589
     590  # success
     591  task.exit    0
     592  end
     593
     594  # locked list
     595  task.exit    default
     596    showcommand failure
     597  end
     598
     599  task.exit    crash
     600    showcommand crash
     601  end
     602
     603  # operation times out?
     604  task.exit    timeout
     605    showcommand timeout
     606  end
     607end
  • trunk/ippTasks/detrend.process.pro

    r23480 r28557  
    5151end
    5252
     53macro detproc.revert.off
     54  task detrend.process.revert
     55    active false
     56  end
     57  task detrend.processexp.revert
     58    active false
     59  end
     60end
     61
     62macro detproc.revert.on
     63  task detrend.process.revert
     64    active true
     65  end
     66  task detrend.processexp.revert
     67    active true
     68  end
     69end
    5370
    5471# these variables will cycle through the known database names
    5572$detPendingProcessedImfile_DB = 0
    5673$detPendingProcessedExp_DB = 0
     74$detPendingProcessedImfile_revert_DB = 0
     75$detPendingProcessedExp_revert_DB = 0
    5776
    5877# select images ready for copy
     
    313332  end
    314333end
     334
     335task detrend.process.revert
     336  host         local
     337
     338  periods      -poll 60.0
     339  periods      -exec 1800.0
     340  periods      -timeout 120.0
     341  npending     1
     342
     343  stdout NULL
     344  stderr $LOGDIR/revert.log
     345
     346  task.exec
     347 
     348    $run = dettool -revertprocessedimfile -all
     349    if ($DB:n == 0)
     350      option DEFAULT
     351    else
     352      # save the DB name for the exit tasks
     353      option $DB:$detPendingProcessedImfile_revert_DB
     354      $run = $run -dbname $DB:$detPendingProcessedImfile_revert_DB
     355      $detPendingProcessedImfile_revert_DB ++
     356      if ($detPendingProcessedImfile_revert_DB >= $DB:n) set detPendingProcessedImfile_revert_DB = 0
     357    end
     358    echo $run
     359    command $run
     360  end
     361
     362  # success
     363  task.exit    0
     364  end
     365
     366  # locked list
     367  task.exit    default
     368    showcommand failure
     369  end
     370
     371  task.exit    crash
     372    showcommand crash
     373  end
     374
     375  # operation times out?
     376  task.exit    timeout
     377    showcommand timeout
     378  end
     379end
     380
     381task detrend.processexp.revert
     382  host         local
     383
     384  periods      -poll 60.0
     385  periods      -exec 1800.0
     386  periods      -timeout 120.0
     387  npending     1
     388
     389  stdout NULL
     390  stderr $LOGDIR/revert.log
     391
     392  task.exec
     393 
     394    $run = dettool -revertprocessedexp -all
     395    if ($DB:n == 0)
     396      option DEFAULT
     397    else
     398      # save the DB name for the exit tasks
     399      option $DB:$detPendingProcessedExp_revert_DB
     400      $run = $run -dbname $DB:$detPendingProcessedExp_revert_DB
     401      $detPendingProcessedExp_revert_DB ++
     402      if ($detPendingProcessedExp_revert_DB >= $DB:n) set detPendingProcessedExp_revert_DB = 0
     403    end
     404    echo $run
     405    command $run
     406  end
     407
     408  # success
     409  task.exit    0
     410  end
     411
     412  # locked list
     413  task.exit    default
     414    showcommand failure
     415  end
     416
     417  task.exit    crash
     418    showcommand crash
     419  end
     420
     421  # operation times out?
     422  task.exit    timeout
     423    showcommand timeout
     424  end
     425end
  • trunk/ippTasks/detrend.resid.pro

    r23480 r28557  
    4949end
    5050
     51macro detresid.revert.on
     52  task detrend.resid.revert
     53    active true
     54  end
     55  task detrend.residexp.revert
     56    active true
     57  end
     58end
     59
     60macro detresid.revert.off
     61  task detrend.resid.revert
     62    active false
     63  end
     64  task detrend.residexp.revert
     65    active false
     66  end
     67end
     68
    5169# these variables will cycle through the known database names
    5270$detPendingResidImfile_DB = 0
    5371$detPendingResidExp_DB = 0
     72$detPendingResidImfile_revert_DB = 0
     73$detPendingResidExp_revert_DB = 0
    5474
    5575# select images ready for copy
     
    316336  end
    317337end
     338
     339task detrend.resid.revert
     340  host         local
     341
     342  periods      -poll 60.0
     343  periods      -exec 1800.0
     344  periods      -timeout 120.0
     345  npending     1
     346
     347  stdout NULL
     348  stderr $LOGDIR/revert.log
     349
     350  task.exec
     351
     352    $run = dettool -revertresidimfile -all
     353    if ($DB:n == 0)
     354      option DEFAULT
     355    else
     356      # save the DB name for the exit tasks
     357      option $DB:$detPendingResidImfile_revert_DB
     358      $run = $run -dbname $DB:$detPendingResidImfile_revert_DB
     359      $detPendingResidImfile_revert_DB ++
     360      if ($detPendingResidImfile_revert_DB >= $DB:n) set detPendingResidImfile_revert_DB = 0
     361    end
     362    echo $run
     363    command $run
     364  end
     365
     366  # success
     367  task.exit    0
     368  end
     369
     370  # locked list
     371  task.exit    default
     372    showcommand failure
     373  end
     374
     375  task.exit    crash
     376    showcommand crash
     377  end
     378
     379  # operation times out?
     380  task.exit    timeout
     381    showcommand timeout
     382  end
     383end
     384
     385task detrend.residexp.revert
     386  host         local
     387
     388  periods      -poll 60.0
     389  periods      -exec 1800.0
     390  periods      -timeout 120.0
     391  npending     1
     392
     393  stdout NULL
     394  stderr $LOGDIR/revert.log
     395
     396  task.exec
     397 
     398
     399    $run = dettool -revertresidexp -all
     400    if ($DB:n == 0)
     401      option DEFAULT
     402    else
     403      # save the DB name for the exit tasks
     404      option $DB:$detPendingResidExp_revert_DB
     405      $run = $run -dbname $DB:$detPendingResidExp_revert_DB
     406      $detPendingResidExp_revert_DB ++
     407      if ($detPendingResidExp_revert_DB >= $DB:n) set detPendingResidExp_revert_DB = 0
     408    end
     409    echo $run
     410    command $run
     411  end
     412
     413  # success
     414  task.exit    0
     415  end
     416
     417  # locked list
     418  task.exit    default
     419    showcommand failure
     420  end
     421
     422  task.exit    crash
     423    showcommand crash
     424  end
     425
     426  # operation times out?
     427  task.exit    timeout
     428    showcommand timeout
     429  end
     430end
  • trunk/ippTasks/detrend.stack.pro

    r23480 r28557  
    3535end
    3636
     37macro detstack.revert.off
     38  task detrend.stack.revert
     39    active false
     40  end
     41end
     42
     43macro detstack.revert.on
     44  task detrend.stack.revert
     45    active true
     46  end
     47end
     48
    3749# this variable will cycle through the known database names
    3850$detPendingStackedImfile_DB = 0
     51$detPendingStackedImfile_revert_DB = 0
    3952
    4053# select images ready for detrend_stack.pl
     
    165178  end
    166179end
     180
     181
     182task detrend.stack.revert
     183  host         local
     184
     185  periods      -poll 60.0
     186  periods      -exec 1800.0
     187  periods      -timeout 120.0
     188  npending     1
     189
     190  stdout NULL
     191  stderr $LOGDIR/revert.log
     192
     193  task.exec
     194 
     195    $run = dettool -revertstacked -all
     196    if ($DB:n == 0)
     197      option DEFAULT
     198    else
     199      # save the DB name for the exit tasks
     200      option $DB:$detPendingStackedImfile_revert_DB
     201      $run = $run -dbname $DB:$detPendingStackedImfile_revert_DB
     202      $detPendingStackedImfile_revert_DB ++
     203      if ($detPendingStackedImfile_revert_DB >= $DB:n) set detPendingStackedImfile_revert_DB = 0
     204    end
     205    echo $run
     206    command $run
     207  end
     208
     209  # success
     210  task.exit    0
     211  end
     212
     213  # locked list
     214  task.exit    default
     215    showcommand failure
     216  end
     217
     218  task.exit    crash
     219    showcommand crash
     220  end
     221
     222  # operation times out?
     223  task.exit    timeout
     224    showcommand timeout
     225  end
     226end
  • trunk/ippTasks/pantasks.pro

    r28539 r28557  
    240240  detreject.off
    241241  detcorr.off
     242end
     243
     244macro detrend.revert.off
     245  detproc.revert.off
     246  detstack.revert.off
     247  detnorm.revert.off
     248  detresid.revert.off
     249end
     250
     251macro detrend.revert.on
     252  detproc.revert.on
     253  detstack.revert.on
     254  detnorm.revert.on
     255  detresid.revert.on
    242256end
    243257
Note: See TracChangeset for help on using the changeset viewer.