Index: /trunk/tools/make_burntool_pcontrol.pl
===================================================================
--- /trunk/tools/make_burntool_pcontrol.pl	(revision 25377)
+++ /trunk/tools/make_burntool_pcontrol.pl	(revision 25378)
@@ -130,5 +130,6 @@
 			     nanosecond => 0, time_zone => 'Pacific/Honolulu')->subtract(minutes => 30);
 	$et = $dt->epoch();
-	
+
+
 	if (!exists($science{$obs_mode})) {
 	    $science{$obs_mode} = 0;
@@ -155,5 +156,9 @@
 
     }
-    
+
+    # If this night has no science exposures, skip to the next one.
+    if (($#start_s == 0) && ($start_s[0] == 0)) {
+	next;
+    }
     # Scan again and count how many exposures are between windows
     foreach $row_ref (@{ $data_ref }) {
@@ -165,5 +170,5 @@
 	    $comment = ' ';
 	}
-	
+
 	($date,$time) = split / /, $dateobs;
 	($year,$month,$day) = split /-/, $date;
@@ -178,5 +183,5 @@
 			     nanosecond => 0, time_zone => 'Pacific/Honolulu')->subtract(minutes => 30);
 	$et = $dt->epoch();
-	
+
 	if (!exists($science{$obs_mode})) {
 	    die "No mode >>$obs_mode<<\n";
