IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 12, 2015, 12:31:04 PM (12 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pv3-20140717-merge/ippTasks/survey.pro

    r37082 r37823  
    178178# user functions to manipulate warp/stack diff labels
    179179macro survey.add.WSdiff
    180   if ($0 != 6)
    181     echo "USAGE: survey.add.WSdiff (warp label) (stack label) (dist_group) (workdir base) (target label)"
     180  if ($0 != 7)
     181    echo "USAGE: survey.add.WSdiff (key) (warp label) (stack label) (dist_group) (workdir base) (target label)"
    182182    break
    183183  end
    184184  book newpage SURVEY_DIFF_WARPSTACK $1
    185   book setword SURVEY_DIFF_WARPSTACK $1 STACK_LABEL $2
    186   book setword SURVEY_DIFF_WARPSTACK $1 DIST_GROUP $3
    187   book setword SURVEY_DIFF_WARPSTACK $1 WORKDIR $4
    188   book setword SURVEY_DIFF_WARPSTACK $1 TARGET_LABEL $5
     185  book setword SURVEY_DIFF_WARPSTACK $1 WARP_LABEL $2
     186  book setword SURVEY_DIFF_WARPSTACK $1 STACK_LABEL $3
     187  book setword SURVEY_DIFF_WARPSTACK $1 DIST_GROUP $4
     188  book setword SURVEY_DIFF_WARPSTACK $1 WORKDIR $5
     189  book setword SURVEY_DIFF_WARPSTACK $1 TARGET_LABEL $6
    189190  book setword SURVEY_DIFF_WARPSTACK $1 STATE PENDING
    190191end
     
    697698  periods      -exec $SURVEY_EXEC
    698699  periods      -timeout $SURVEY_TIMEOUT
     700  ## time in UT -- want to start ~0900 HST and run until next night starts. 24h boundary so two trange needed?
     701  trange        19:00:00 23:59:00
     702  trange        00:00:00 05:00:00
    699703  npending     1
    700704
     
    710714    endif
    711715
    712     book getpage SURVEY_DIFF_WARPSTACK 0 -var label -key STATE NEW
    713     if ("$label" == "NULL")
     716    book getpage SURVEY_DIFF_WARPSTACK 0 -var wsKey -key STATE NEW
     717    if ("$wsKey" == "NULL")
    714718      # All labels have been done --- reset
    715719#      echo "Resetting labels"
    716720      for i 0 $N
    717         book getpage SURVEY_DIFF_WARPSTACK $i -var label
    718         book setword SURVEY_DIFF_WARPSTACK $label STATE NEW
     721        book getpage SURVEY_DIFF_WARPSTACK $i -var wsKey
     722        book setword SURVEY_DIFF_WARPSTACK $wsKey STATE NEW
    719723      end
    720       book getpage SURVEY_DIFF_WARPSTACK 0 -var label -key STATE NEW
     724      book getpage SURVEY_DIFF_WARPSTACK 0 -var wsKey -key STATE NEW
    721725
    722726      # Select different database
     
    725729    end
    726730
    727     book setword SURVEY_DIFF_WARPSTACK $label STATE DONE
    728     book getword SURVEY_DIFF_WARPSTACK $label STACK_LABEL -var stack_label
    729     book getword SURVEY_DIFF_WARPSTACK $label WORKDIR -var workdir
    730     book getword SURVEY_DIFF_WARPSTACK $label DIST_GROUP -var dist_group
    731     book getword SURVEY_DIFF_WARPSTACK $label TARGET_LABEL -var target_label
     731    book setword SURVEY_DIFF_WARPSTACK $wsKey STATE DONE
     732    book getword SURVEY_DIFF_WARPSTACK $wsKey WARP_LABEL -var warp_label
     733    book getword SURVEY_DIFF_WARPSTACK $wsKey STACK_LABEL -var stack_label
     734    book getword SURVEY_DIFF_WARPSTACK $wsKey WORKDIR -var workdir
     735    book getword SURVEY_DIFF_WARPSTACK $wsKey DIST_GROUP -var dist_group
     736    book getword SURVEY_DIFF_WARPSTACK $wsKey TARGET_LABEL -var target_label
    732737
    733738    $year = `date +%Y`
     
    737742# Do we need anything else here?
    738743    $run = difftool -definewarpstack -good_frac 0.2
    739     $run = $run -warp_label $label
     744    $run = $run -warp_label $warp_label
    740745    $run = $run -stack_label $stack_label
    741746    $run = $run -set_dist_group $dist_group
     
    10121017        $run = $run -uncensored
    10131018    end
    1014 
     1019    if ("$stage" == "fullforce")
     1020        $run = $run -uncensored
     1021    end
     1022    if ("$stage" == "diff")
     1023        $run = $run -uncensored)
     1024    end
    10151025    # we need to handle isp/gpc1: gpc1 wants destreaked, isp wants uncensored.  Perhaps the best way is by default do destreaked (the most paranoid), and if db = isp (is this the best way?) then do uncensored
    10161026   
Note: See TracChangeset for help on using the changeset viewer.