IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 22, 2010, 5:36:31 PM (16 years ago)
Author:
Paul Price
Message:

Be dynamic about dynamic masks --- only use the dynamic masks for warp if it's turned on in the psastro recipe.

File:
1 edited

Legend:

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

    r27010 r27039  
    144144}
    145145
     146
     147my $produceMasks;               # Produce masks?
     148{
     149    # Get the PSASTRO recipe
     150    my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe ADDSTAR -";
     151    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     152        run(command => $command, verbose => $verbose);
     153    unless ($success) {
     154        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     155        &my_die("Unable to perform ppConfigDump: $error_code", $cam_id, $PS_EXIT_CONFIG_ERROR);
     156    }
     157    my $recipeData = $mdcParser->parse(join "", @$stdout_buf) or
     158        &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_CONFIG_ERROR);
     159
     160    $produceMasks = metadataLookupBool($recipeData, 'REFSTAR_MASK');
     161}
     162
     163
    146164### not needed to have such an extensive temp file name.
    147165my ($list1File, $list1Name) = tempfile( "/tmp/$exp_tag.cm.$cam_id.b1.list.XXXX", UNLINK => !$save_temps ); # For binning 1
     
    177195    print $list4File ($chipMask . "\n");
    178196
    179     push @outMasks, $ipprc->filename("PSASTRO.OUTPUT.MASK", $outroot, $class_id);
     197    push @outMasks, $ipprc->filename("PSASTRO.OUTPUT.MASK", $outroot, $class_id) if $produceMasks;
    180198}
    181199close $list1File;
Note: See TracChangeset for help on using the changeset viewer.