IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 18, 2013, 1:52:09 PM (13 years ago)
Author:
bills
Message:

adapt survey.chip.bg and survey.warp.bg to new bgtool api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/survey.pro

    r35627 r35676  
    382382macro survey.add.chip.bg
    383383  if ($0 != 4)
    384     echo "USAGE: survey.add.chip.bg (label) (dist_group) (muggle)"
     384    echo "USAGE: survey.add.chip.bg (label) (cam_label) (dist_group)"
    385385    break
    386386  end
    387387  book newpage SURVEY_CHIP_BG $1
    388   book setword SURVEY_CHIP_BG $1 DIST_GROUP $2
    389   book setword SURVEY_CHIP_BG $1 MUGGLE $3
     388  book setword SURVEY_CHIP_BG $1 LABEL $1
     389  book setword SURVEY_CHIP_BG $1 CAM_LABEL $2
     390  book setword SURVEY_CHIP_BG $1 DIST_GROUP $3
    390391  book setword SURVEY_CHIP_BG $1 STATE PENDING
    391392end
     
    410411macro survey.add.warp.bg
    411412  if ($0 != 4)
    412     echo "USAGE: survey.add.warp.bg (label) (dist_group) (muggle)"
     413    echo "USAGE: survey.add.warp.bg (label) (warp_label) (dist_group)"
    413414    break
    414415  end
    415416  book newpage SURVEY_WARP_BG $1
    416   book setword SURVEY_WARP_BG $1 DIST_GROUP $2
    417   book setword SURVEY_WARP_BG $1 MUGGLE $3
     417  book setword SURVEY_WARP_BG $1 LABEL $1
     418  book setword SURVEY_WARP_BG $1 WARP_LABEL $2
     419  book setword SURVEY_WARP_BG $1 DIST_GROUP $3
    418420  book setword SURVEY_WARP_BG $1 STATE PENDING
    419421end
     
    13121314
    13131315    book setword SURVEY_CHIP_BG $label STATE DONE
     1316    book getword SURVEY_CHIP_BG $label CAM_LABEL -var cam_label
    13141317    book getword SURVEY_CHIP_BG $label DIST_GROUP -var dist_group
    1315     book getword SURVEY_CHIP_BG $label MUGGLE -var muggle
     1318#    book getword SURVEY_CHIP_BG $label MUGGLE -var muggle
    13161319 
    1317     $run = bgtool -definechip -label $label -set_dist_group $dist_group
    1318     if ($muggle == 0)
    1319         $run = $run -destreaked
    1320     end
     1320    $run = bgtool -definechip -label $label -cam_label $cam_label -set_dist_group $dist_group
     1321#    if ($muggle == 0)
     1322#        $run = $run -destreaked
     1323#    end
    13211324
    13221325    if ($DB:n == 0)
     
    13881391
    13891392    book setword SURVEY_WARP_BG $label STATE DONE
     1393    book getword SURVEY_WARP_BG $label WARP_LABEL -var warp_label
    13901394    book getword SURVEY_WARP_BG $label DIST_GROUP -var dist_group
    1391     book getword SURVEY_WARP_BG $label MUGGLE -var muggle
    13921395 
    1393     $run = bgtool -definewarp -warp_label $label -set_dist_group $dist_group
    1394     if ($muggle == 0)
    1395         $run = $run -destreaked
    1396     end
     1396    $run = bgtool -definewarp -set_label $label -chip_bg_label $label -warp_label $warp_label -set_dist_group $dist_group
     1397#    if ($muggle == 0)
     1398#        $run = $run -destreaked
     1399#    end
    13971400
    13981401
Note: See TracChangeset for help on using the changeset viewer.