IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26835


Ignore:
Timestamp:
Feb 9, 2010, 6:38:12 PM (16 years ago)
Author:
eugene
Message:

fix magic_process.pl to correctly run VerifyStreaks; updates to ippconfig for MAGIC output files

Location:
branches/eam_branches/20091201
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ippScripts/scripts/magic_process.pl

    r26812 r26835  
    290290    my $baseroot = shift;
    291291
    292     unless ($VerifyStreaks) { 
    293         print STDERR "skipping VerifyStreaks\n";
    294         return 1;
     292    unless ($VerifyStreaks) {
     293        print STDERR "skipping VerifyStreaks\n";
     294        return 1;
    295295    }
    296296
     
    300300
    301301    my($status) = system ("mkdir -p $outdir");
    302     if ($status) {
    303         print STDERR "failed to create output directory $outdir\n";
    304         return 1;
    305     }
     302    if ($status) {
     303        print STDERR "failed to create output directory $outdir\n";
     304        return 1;
     305    }
     306
     307    my $FILE;
    306308
    307309    my @files = <$baseroot.*.clusters>;
    308     unless (OPEN (FILE, ">$outdir/clusters.list")) {
    309         print "failed to create cluster file $outdir/clusters.list\n";
    310         return 1;
     310
     311    unless (open ($FILE, ">$outdir/clusters.list")) {
     312        print "failed to create cluster file $outdir/clusters.list\n";
     313        return 1;
    311314    }
    312315    foreach my $file (@files) {
    313         print FILE "$file\n";
    314     }
    315     close (FILE);
    316     if ($status) {
    317         print "failed to create cluster file $outdir/clusters.list\n";
    318         return 1;
     316        $file =~ s|.clusters$||;
     317        print $FILE "$file\n";
     318    }
     319    close ($FILE);
     320    if ($status) {
     321        print "failed to create cluster file $outdir/clusters.list\n";
     322        return 1;
    319323    }
    320324
     
    322326
    323327    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    324         run(command => $command, verbose => $verbose);
     328        run(command => $command, verbose => $verbose);
    325329    unless ($success) {
    326         print "failed to run VerifyStreaks:\n stderr: $stderr_buff\n stdout: $stdout_buff";
    327         return 1;
     330        print "failed to run VerifyStreaks:\n";
     331        return 1;
    328332    }
    329333
  • branches/eam_branches/20091201/ippconfig/recipes/filerules-mef.mdc

    r26598 r26835  
    302302CENSOR.OUTPUT           OUTPUT {OUTPUT}.smf                      CMF       NONE       FPA        TRUE      MEF
    303303
     304MAGIC.ORIGINAL.PNG      OUTPUT {OUTPUT}_original.png             JPEG      NONE       FPA        TRUE      NONE
     305MAGIC.RESIDUAL.PNG      OUTPUT {OUTPUT}_residual.png             JPEG      NONE       FPA        TRUE      NONE
     306MAGIC.MASK.PNG          OUTPUT {OUTPUT}_mask.png                 JPEG      NONE       FPA        TRUE      NONE
     307MAGIC.DUPLICATE.PNG     OUTPUT {OUTPUT}_duplicate.png            JPEG      NONE       FPA        TRUE      NONE
     308
    304309PPSMOOTH.OUTPUT          OUTPUT {OUTPUT}.{CHIP.NAME}.fits        IMAGE     NONE       CHIP       TRUE      MEF
    305310PPSMOOTH.OUTPUT.MASK     OUTPUT {OUTPUT}.{CHIP.NAME}.mk.fits     MASK      NONE       CHIP       TRUE      MEF
  • branches/eam_branches/20091201/ippconfig/recipes/filerules-simple.mdc

    r26598 r26835  
    250250CENSOR.OUTPUT           OUTPUT {OUTPUT}.smf          CMF       NONE       FPA        TRUE      MEF
    251251
     252MAGIC.ORIGINAL.PNG      OUTPUT {OUTPUT}_original.png             JPEG      NONE       FPA        TRUE      NONE
     253MAGIC.RESIDUAL.PNG      OUTPUT {OUTPUT}_residual.png             JPEG      NONE       FPA        TRUE      NONE
     254MAGIC.MASK.PNG          OUTPUT {OUTPUT}_mask.png                 JPEG      NONE       FPA        TRUE      NONE
     255MAGIC.DUPLICATE.PNG     OUTPUT {OUTPUT}_duplicate.png            JPEG      NONE       FPA        TRUE      NONE
     256
    252257PPSMOOTH.OUTPUT          OUTPUT {OUTPUT}.fits        IMAGE     NONE       FPA        TRUE      SIMPLE
    253258PPSMOOTH.OUTPUT.MASK     OUTPUT {OUTPUT}.mk.fits     MASK      NONE       FPA        TRUE      SIMPLE
  • branches/eam_branches/20091201/ippconfig/recipes/filerules-split.mdc

    r26598 r26835  
    269269CENSOR.OUTPUT           OUTPUT {OUTPUT}.smf                      CMF       NONE       FPA        TRUE      MEF
    270270
     271MAGIC.ORIGINAL.PNG      OUTPUT {OUTPUT}_original.png             JPEG      NONE       FPA        TRUE      NONE
     272MAGIC.RESIDUAL.PNG      OUTPUT {OUTPUT}_residual.png             JPEG      NONE       FPA        TRUE      NONE
     273MAGIC.MASK.PNG          OUTPUT {OUTPUT}_mask.png                 JPEG      NONE       FPA        TRUE      NONE
     274MAGIC.DUPLICATE.PNG     OUTPUT {OUTPUT}_duplicate.png            JPEG      NONE       FPA        TRUE      NONE
     275
    271276PPSMOOTH.OUTPUT          OUTPUT {OUTPUT}.{CHIP.NAME}.fits        IMAGE     NONE       CHIP       TRUE      MEF
    272277PPSMOOTH.OUTPUT.MASK     OUTPUT {OUTPUT}.{CHIP.NAME}.mk.fits     MASK      NONE       CHIP       TRUE      MEF
Note: See TracChangeset for help on using the changeset viewer.