Index: trunk/ippScripts/scripts/warp_skycell.pl
===================================================================
--- trunk/ippScripts/scripts/warp_skycell.pl	(revision 20929)
+++ trunk/ippScripts/scripts/warp_skycell.pl	(revision 20930)
@@ -27,19 +27,20 @@
 my $ipprc = PS::IPP::Config->new(); # IPP configuration
 
-my ($warp_id, $skycell_id, $tess_dir, $camera, $dbname, $outroot, $threads, $run_state, $verbose, $no_update, $no_op, $redirect, $save_temps);
+my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $camera, $dbname, $outroot, $threads, $run_state, $verbose, $no_update, $no_op, $redirect, $save_temps);
 GetOptions(
-    'warp_id|i=s'       => \$warp_id, # Warp identifier
-    'skycell_id|s=s'    => \$skycell_id, # Skycell identifier
-    'tess_dir|s=s'       => \$tess_dir, # Tesselation identifier
-    'camera|c=s'        => \$camera, # Camera name
-    'dbname|d=s'        => \$dbname, # Database name
-    'outroot=s'         => \$outroot, # Output root name
-    'threads=s'         => \$threads,   # Number of threads to use for pswarp
-    'run-state=s'       => \$run_state,  # 'new' or 'update'
-    'verbose'           => \$verbose,   # Print to stdout
-    'no-update'         => \$no_update, # Don't update the database?
-    'no-op'             => \$no_op, # Don't do any operations?
-    'redirect-output'   => \$redirect,
-    'save-temps'        => \$save_temps, # Save temporary files?
+    'warp_id|i=s'         => \$warp_id, # Warp identifier
+    'skycell_id|s=s'      => \$skycell_id, # Skycell identifier
+    'warp_skyfile_id|s=s' => \$warp_skyfile_id, # Unique file identifier
+    'tess_dir|s=s'        => \$tess_dir, # Tesselation identifier
+    'camera|c=s'          => \$camera, # Camera name
+    'dbname|d=s'          => \$dbname, # Database name
+    'outroot=s'           => \$outroot, # Output root name
+    'threads=s'           => \$threads,   # Number of threads to use for pswarp
+    'run-state=s'         => \$run_state,  # 'new' or 'update'
+    'verbose'             => \$verbose,   # Print to stdout
+    'no-update'           => \$no_update, # Don't update the database?
+    'no-op'               => \$no_op, # Don't do any operations?
+    'redirect-output'     => \$redirect,
+    'save-temps'          => \$save_temps, # Save temporary files?
 ) or pod2usage( 2 );
 
@@ -50,4 +51,5 @@
 ) unless defined $warp_id
     and defined $skycell_id
+    ### and defined $warp_skyfile_id
     and defined $tess_dir
     and defined $camera
@@ -61,4 +63,7 @@
 
 $ipprc->redirect_output($logDest) if $redirect;
+
+my $image_id = $warp_skyfile_id;
+my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_WARP);
 
 # Look for programs we need
@@ -188,4 +193,6 @@
     $command .= " -threads $threads" if defined $threads;
     $command .= " -dbname $dbname" if defined $dbname;
+    # $command .= " -image_id $image_id" if defined $image_id;
+    # $command .= " -source_id $source_id" if defined $source_id;
     if ($run_state eq 'new') {
         $command .= " -dumpconfig $configuration";
