IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 9, 2021, 4:07:00 PM (5 years ago)
Author:
eugene
Message:

moved survey.stage and survey.publish.status to survey.pro from stdscience

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/survey.pro

    r39548 r41547  
    148148end
    149149
     150macro survey.stage
     151  if ($0 != 3)
     152    echo "USAGE: survey.stage (stage) (mode)"
     153    echo " turn the specified survey stage on or off"
     154    echo " stage = diff, warpstack.diff, stackstack.diff, magic, destreak, dist, addstar"
     155    echo " mode = on, off"
     156    break
     157  end
     158
     159  local found stage mode
     160
     161  $stage = $1
     162  $mode = $2
     163
     164  $found = 0
     165  if ("$stage" == "diff")
     166    $found = 1
     167  end
     168  if ("$stage" == "warpstack.diff")
     169    $found = 1
     170  end
     171  if ("$stage" == "stackstack.diff")
     172    $found = 1
     173  end
     174  if ("$stage" == "magic")
     175    $found = 1
     176  end
     177  if ("$stage" == "destreak")
     178    $found = 1
     179  end
     180  if ("$stage" == "dist")
     181    $found = 1
     182  end
     183  if ("$stage" == "addstar")
     184    $found = 1
     185  end
     186  if ($found == 0)
     187    echo "unknown stage $stage"
     188    break
     189  end
     190
     191  if (("$mode" != "on") && ("$mode" != "off"))
     192    echo "unknown mode $mode"
     193    break
     194  end
     195
     196  if ("$mode" == "on")
     197    task survey.$stage
     198      active true
     199    end
     200  end
     201
     202  if ("$mode" == "off")
     203    task survey.$stage
     204      active false
     205    end
     206  end
     207end
     208
     209macro survey.publish.status
     210  if ($0 != 2)
     211    echo "USAGE: survey.publish.status (true/false)"
     212    break
     213  end
     214
     215  task survey.publish
     216    active $1
     217  end
     218end
     219
    150220# user functions to manipulate diff labels
    151221macro survey.add.diff
Note: See TracChangeset for help on using the changeset viewer.