IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33576


Ignore:
Timestamp:
Mar 21, 2012, 11:44:53 AM (14 years ago)
Author:
bills
Message:

Add two options to camera_exp to support debugging when the input chipRuns have been cleaned.

  1. --skip-refmask Override recipe and set REFSTAR_MASK to false
  2. --skip-binning Override recipe and skip production of binned images
File:
1 edited

Legend:

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

    r33321 r33576  
    4141
    4242my ( $exp_tag, $cam_id, $camera, $outroot, $dbname, $reduction, $dvodb, $verbose, $no_update,
    43      $no_op, $redirect, $save_temps, $run_state);
     43     $no_op, $redirect, $save_temps, $run_state, $skip_binned, $skip_masks);
    4444GetOptions(
    45     'exp_tag=s'          => \$exp_tag, # Exposure identifier
     45    'exp_tag=s'         => \$exp_tag, # Exposure identifier
    4646    'cam_id=s'          => \$cam_id, # Camtool identifier
    4747    'camera|c=s'        => \$camera, # Camera
     
    5151    'dvodb|w=s'         => \$dvodb,  # output DVO database
    5252    'run-state=s'       => \$run_state, # 'new' or 'update'
     53    'skip-binned'       => \$skip_binned, # override recipe - don't create binned images
     54    'skip-refmask'      => \$skip_masks, # override recipe - don't create refmask
    5355    'verbose'           => \$verbose,   # Print to stdout
    5456    'no-update'         => \$no_update, # Update the database?
     
    190192
    191193my $produceMasks;               # Produce masks?
    192 {
     194if (!$skip_masks) {
    193195    # Get the PSASTRO recipe
    194196    my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -";
     
    205207}
    206208
    207 
    208209### not needed to have such an extensive temp file name.
    209210my ($list1File, $list1Name) = tempfile( "/tmp/$exp_tag.cm.$cam_id.b1.list.XXXX", UNLINK => !$save_temps ); # For binning 1
     
    261262
    262263    # Make the jpeg for binning 1
    263     if ($run_state eq 'new') {
     264    if (!$skip_binned and ($run_state eq 'new')) {
    264265        my $command = "$ppImage -list $list1Name $outroot"; # Command to run
    265266        $command .= " -recipe PPIMAGE $recipe1";
     
    276277
    277278    # Make the jpeg for binning 2
    278     if ($run_state eq 'new') {
     279    if (!$skip_binned and ($run_state eq 'new')) {
    279280        my $command = "$ppImage -list $list2Name $outroot"; # Command to run
    280281        $command .= " -recipe PPIMAGE $recipe2";
     
    295296        $command  = "$psastro";
    296297        $command .= " -list $list3Name";
    297         $command .= " -masklist $list4Name";
     298        $command .= " -masklist $list4Name" if $produceMasks;
    298299        $command .= " $outroot";
    299300        $command .= " -recipe PSASTRO $recipe_psastro";
     301        $command .= " -Db PSASTRO:REFSTAR_MASK F" if $skip_masks;
    300302        $command .= " -tracedest $traceDest -log $logDest";
    301303        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.