IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31297


Ignore:
Timestamp:
Apr 15, 2011, 12:17:51 PM (15 years ago)
Author:
heather
Message:

small modifications (with testing) to get staticsky stage working in add*

Location:
branches/haf_branches/haf_add2011
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/haf_branches/haf_add2011/ippScripts/scripts/addstar_run.pl

    r31280 r31297  
    9595  $recipe_addstar = $ipprc->reduction($reduction, 'ADDSTAR_STACK'); # Recipe to use
    9696}
    97 if ($stage =~/staticsky/) {
    98   $recipe_addstar = $ipprc->reduction($reduction, 'ADDSTAR_STATICSKY'); # Recipe to use
    99 }
     97#if ($stage =~/staticsky/) {
     98#  $recipe_addstar = $ipprc->reduction($reduction, 'ADDSTAR_STATICSKY'); # Recipe to use
     99#}
    100100&my_die("Unrecognised ADDSTAR recipe", $add_id, $PS_EXIT_CONFIG_ERROR) unless defined $recipe_addstar;
    101101
     
    106106
    107107# the camera configurations should define the psastro output to be a single file (MEF), regardless of the inputs
     108
     109# it was PSASTRO.OUTPUT
    108110my $fpaObjects = $ipprc->filename("PSASTRO.OUTPUT",     $stageroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR);
     111
     112if (($stage =~/staticsky/) || ($stage =~/stack/)) {
     113    $fpaObjects =~ s/smf$/cmf/;
     114   
     115}
    109116my $traceDest  = $ipprc->filename("TRACE.EXP",          $outroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR);
    110117
     
    182189        $command .= " $realFile";
    183190        $command .= " -use-name $fpaObjects"; # DVO wants the neb-name as a file reference
    184         $command .= " -image" if $image_only;
    185 
     191            $command .= " -image" if $image_only;
     192            if ($stage = ~/staticsky/) {
     193                $command .= " -accept-astrom ";
     194            }
    186195        my $mjd_addstar_start = DateTime->now->mjd;   # MJD of starting script
    187196
  • branches/haf_branches/haf_add2011/ippTasks/addstar.pro

    r31280 r31297  
    252252    book getword addPendingExp $pageName exp_tag -var EXP_TAG
    253253    book getword addPendingExp $pageName add_id -var ADD_ID
    254     book getword addPendingExp $pageName camroot -var CAMROOT
     254    book getword addPendingExp $pageName stageroot -var STAGEROOT
     255    book getword addPendingExp $pageName stage -var STAGE 
    255256    book getword addPendingExp $pageName workdir -var WORKDIR_TEMPLATE
    256257    book getword addPendingExp $pageName reduction -var REDUCTION
     
    277278
    278279    ## generate outroot specific to this exposure (& chip)
    279     sprintf outroot "%s/%s/%s.add.%s" $WORKDIR $EXP_TAG $EXP_TAG $ADD_ID
     280
     281    if ("$STAGE" == "cam")
     282        sprintf outroot "%s/%s/%s.add.%s" $WORKDIR $EXP_TAG $EXP_TAG $ADD_ID
     283    end
     284    if ("$STAGE" == "staticsky")
     285        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
     286    end
     287    if ("$STAGE" == "stack")
     288        sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID
     289    end
     290 
    280291
    281292    stdout $LOGDIR/addstar.exp.log
    282293    stderr $LOGDIR/addstar.exp.log
    283294
    284     $run = addstar_run.pl --exp_tag $EXP_TAG --add_id $ADD_ID --camera $CAMERA --dvodb $DVODB --stage $STAGE --stageroot $STAGEROOT --outroot $outroot --redirect-output
     295    $run = addstar_run.pl --add_id $ADD_ID --camera $CAMERA --dvodb $DVODB --stage $STAGE --stageroot $STAGEROOT --outroot $outroot --redirect-output
    285296    if ("$REDUCTION" != "NULL")
    286297      $run = $run --reduction $REDUCTION
  • branches/haf_branches/haf_add2011/ippTasks/survey.pro

    r31280 r31297  
    231231
    232232macro survey.add.addstar
    233   if ($0 != 4)
     233  if ($0 != 5)
    234234    echo "USAGE: survey.add.addstar (label) (dvodb) (minidvodb_group) (stage)"
    235235    break
     
    238238  book setword SURVEY_ADDSTAR $1 DVODB $2
    239239  book setword SURVEY_ADDSTAR $1 MINIDVODB_GROUP $3
    240   book setwork SURVEY_ADDSTAR $1 STAGE $4 
     240  book setword SURVEY_ADDSTAR $1 STAGE $4 
    241241  book setword SURVEY_ADDSTAR $1 STATE PENDING
    242242end
Note: See TracChangeset for help on using the changeset viewer.