Index: trunk/ippScripts/scripts/diff_skycell.pl
===================================================================
--- trunk/ippScripts/scripts/diff_skycell.pl	(revision 20973)
+++ trunk/ippScripts/scripts/diff_skycell.pl	(revision 21309)
@@ -28,8 +28,9 @@
 
 my ($diff_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect);
-my $skycell_id;                 # Skycell identifier
+my ($skycell_id, $diff_skyfile_id);
 GetOptions(
     'diff_id=s'         => \$diff_id, # Diff identifier
     'skycell_id=s'      => \$skycell_id, # Diff identifier
+    'diff_skyfile_id=s' => \$diff_skyfile_id, # Diff identifier
     'dbname|d=s'        => \$dbname, # Database name
     'threads=s'         => \$threads,   # Number of threads to use
@@ -48,4 +49,5 @@
           ) unless defined $diff_id
     and defined $skycell_id
+    and defined $diff_skyfile_id
     and defined $outroot;
 
@@ -55,4 +57,6 @@
 my $logDest = "$outroot.log";
 $ipprc->redirect_output($logDest) if $redirect;
+
+my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_DIFF);
 
 # Look for programs we need
@@ -212,4 +216,6 @@
     $command .= " -dumpconfig $configuration";
     $command .= " -dbname $dbname" if defined $dbname;
+    $command .= " -image_id $diff_skyfile_id" if defined $diff_skyfile_id;
+    $command .= " -source_id $source_id" if defined $source_id;
 
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
