Index: trunk/ippScripts/scripts/magic_destreak.pl
===================================================================
--- trunk/ippScripts/scripts/magic_destreak.pl	(revision 24687)
+++ trunk/ippScripts/scripts/magic_destreak.pl	(revision 24691)
@@ -194,5 +194,5 @@
     }
 
-    my ($image, $mask, $ch_mask, $weight, $astrom);
+    my ($image, $mask, $ch_mask, $weight, $astrom, $sources);
 
     if ($stage eq "raw") {
@@ -211,4 +211,5 @@
         $mask   = $ipprc->filename("PSWARP.OUTPUT.MASK", $path_base);
         $weight = $ipprc->filename("PSWARP.OUTPUT.VARIANCE", $path_base);
+        $sources    = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $path_base);
     } elsif ($stage eq "diff") {
         my $name = $inverse ? "PPSUB.INVERSE" : "PPSUB.OUTPUT"; # Base name for images
@@ -216,4 +217,5 @@
         $mask   = $ipprc->filename("$name.MASK", $path_base);
         $weight = $ipprc->filename("$name.VARIANCE", $path_base);
+        $sources    = $ipprc->filename("PPSUB.OUTPUT.SOURCES", $path_base);
     }
 
@@ -227,4 +229,5 @@
         $command .= " -chip_mask $ch_mask" if defined $ch_mask;
         $command .= " -weight $weight" if defined $weight;
+        $command .= " -sources $sources" if defined $sources;
         $command .= " -skycelllist $skycell_list" if defined $skycell_list;
         $command .= " -replace" if $replace;
