IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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*

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.