Index: trunk/tools/gpc1_find_images.pl
===================================================================
--- trunk/tools/gpc1_find_images.pl	(revision 26620)
+++ trunk/tools/gpc1_find_images.pl	(revision 26670)
@@ -208,4 +208,5 @@
 	    push @{ $mapping{$class} }, $skycell;
 	    push @{ $mapping{$raw_class} }, $skycell;
+#	    print STDERR "$raw_class $class $skycell\n";
 	}
     }
Index: trunk/tools/make_burntool_pcontrol.pl
===================================================================
--- trunk/tools/make_burntool_pcontrol.pl	(revision 26620)
+++ trunk/tools/make_burntool_pcontrol.pl	(revision 26670)
@@ -266,5 +266,7 @@
 	printf(" burntool %s %s\n",$date_min,$date_max);
     }
-    print "\n";
+    unless(exists($opt{d})) {
+        print "\n";
+    }
     $N_ranges += ($#start_s + 1);
 }
@@ -311,4 +313,8 @@
 }
 sub print_short_epilogue {
+    if (exists($opt{b})) {
+	print STDERR "There were no science exposures to process. Sorry, try again tomorrow.\n";
+	return();
+    }
     print << 'END_SHORT_EPILOGUE';
 
Index: trunk/tools/neb-ds9.pl
===================================================================
--- trunk/tools/neb-ds9.pl	(revision 26620)
+++ trunk/tools/neb-ds9.pl	(revision 26670)
@@ -4,5 +4,5 @@
 getopts('AM',\%opt);
 
-$cmd = 'ds9 -scale mode zscale ';
+$cmd = 'ds9  -scale mode zscale ';
 
 if (exists($opt{A})) {
@@ -21,3 +21,4 @@
     }
 }
+#$cmd .= "  -zoom to fit -regions format xy -regions system wcs -regions load targets.reg  ";
 system("$cmd");
Index: trunk/tools/wiki_nightly_stacks_table.pl
===================================================================
--- trunk/tools/wiki_nightly_stacks_table.pl	(revision 26620)
+++ trunk/tools/wiki_nightly_stacks_table.pl	(revision 26670)
@@ -133,5 +133,5 @@
 
 #warps
-$sth = "select rawExp.dateobs,warpRun.state,rawExp.filter,count(warpRun.state),warpRun.data_group,warpRun.dist_group from warpRun JOIN fakeRun using (fake_id) JOIN camRun using (cam_id) JOIN chipRun using (chip_id) JOIN rawExp using (exp_id)  where warpRun.label LIKE '%nightlystack' GROUP BY data_group,filter ORDER BY data_group,filter"; 
+$sth = "select rawExp.dateobs,warpRun.state,rawExp.filter,count(warpRun.state),warpRun.data_group,warpRun.dist_group from warpRun JOIN fakeRun using (fake_id) JOIN camRun using (cam_id) JOIN chipRun using (chip_id) JOIN rawExp using (exp_id)  where warpRun.label LIKE '%nightlystack' GROUP BY data_group,filter,state ORDER BY data_group,filter"; 
 $data_ref = $db->selectall_arrayref( $sth );
 
