Index: trunk/ippScripts/scripts/skycalibration.pl
===================================================================
--- trunk/ippScripts/scripts/skycalibration.pl	(revision 32973)
+++ trunk/ippScripts/scripts/skycalibration.pl	(revision 32982)
@@ -117,6 +117,14 @@
 }
 
+# XXX: We are making the bad assumption here that the staticksky run used the same reduction class
+# as this skycalRun
+my $recipe_psphot = $ipprc->reduction($reduction, "STACKPHOT_PSPHOT");
+unless ($recipe_psphot) {
+    &my_die("Couldn't find selected reduction for STATCKPHOT_PSPHOT: $reduction\n", $skycal_id, $PS_EXIT_CONFIG_ERROR);
+}
+
 print "reduction:      $reduction\n";
 print "recipe_psastro: $recipe_psastro\n";
+print "recipe_psphot:  $recipe_psphot\n";
 
 my $configuration = $ipprc->filename("PSASTRO.CONFIG", $outroot);
@@ -188,6 +196,7 @@
     my $command = "$psastro $outroot";
     $command .= " -file $file";
-    $command .= " -threads $threads" if defined $threads;
+#     $command .= " -threads $threads" if defined $threads;  # psastro doesn't currently accept -threads
     $command .= " -recipe PSASTRO  $recipe_psastro";
+    $command .= " -recipe PSPHOT   $recipe_psphot";
     $command .= " -F PSASTRO.OUTPUT $output_sources_filerule";
     $command .= " -stats $stats";
