IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2011, 11:46:43 AM (15 years ago)
Author:
heather
Message:

added 'staticsky_multi' stage to addstar to allow processing of staticsky
(multi_filter).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/addstar_run.pl

    r31377 r32832  
    3737}
    3838my $minidvodb_path;
    39 my ( $add_id, $camera, $stage, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,
     39my ( $add_id, $camera, $stage, $multi_num, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,
    4040     $no_op, $redirect, $save_temps);
    4141GetOptions(
     
    4343    'camera|c=s'        => \$camera, # Camera
    4444    'stage|s=s'        => \$stage, # Camera
    45    
     45    'multi_num|w=s'    => \$multi_num, # the number for a staticskymulti (for finding cmf)
    4646    'dbname|d=s'        => \$dbname, # Database name
    4747    'outroot|w=s'       => \$outroot, # output file base name
     
    114114   
    115115}
     116
     117if ($stage =~/staticsky_multi/) {
     118    $fpaObjects =~ s/smf$/cmf/; #this should do nothing because it was already modded above
     119    &my_die( "can't find the filter_num for staticsky_multi, giving up.", $add_id, $PS_EXIT_SYS_ERROR) unless (defined $multi_num);
     120    my $nice_num = sprintf ("%03d", $multi_num);
     121    $fpaObjects =~ s/cmf$/$nice_num.cmf/;  #this make it look for .001.cmf, etc
     122 
     123}
     124
    116125my $traceDest  = $ipprc->filename("TRACE.EXP",          $outroot) or &my_die("Missing entry from camera config", $add_id, $PS_EXIT_CONFIG_ERROR);
    117126
     
    190199        $command .= " -use-name $fpaObjects"; # DVO wants the neb-name as a file reference
    191200            $command .= " -image" if $image_only;
    192             if ($stage = ~/staticsky/) {
     201            if ($stage =~ /staticsky/) {
    193202                $command .= " -accept-astrom ";
    194             }
     203            }  #careful here - this matches staticsky and staticsky_multi
    195204        my $mjd_addstar_start = DateTime->now->mjd;   # MJD of starting script
    196205
Note: See TracChangeset for help on using the changeset viewer.