Index: trunk/Ohana/src/dvosplit/src/dvosplit.c
===================================================================
--- trunk/Ohana/src/dvosplit/src/dvosplit.c	(revision 41500)
+++ trunk/Ohana/src/dvosplit/src/dvosplit.c	(revision 41501)
@@ -9,5 +9,6 @@
   int i, j, OUT_DEPTH;
   SkyTable *sky;
-  SkyList *skylist, *outlist;
+  SkyList *skylist = NULL;
+  SkyList *outlist = NULL;
   Catalog incatalog, *outcatalogs;
   char *filename, *CATDIR;
@@ -70,4 +71,17 @@
     if (LocalCopy && (skylist[0].regions[i][0].depth == OUT_DEPTH)) continue;
 
+    // find the list of output filenames (do not yet open)
+    // we need to check if we have already done the split
+
+    // change sky.regions[i].depth for these regions
+    // outlist = SkyListByPatch (sky, OUT_DEPTH, skylist[0].regions[i]);
+    outlist = SkyListChildrenByBounds (sky, skylist[0].regions[i][0].index, OUT_DEPTH,
+				       skylist[0].regions[i][0].Rmin + 0.01, skylist[0].regions[i][0].Rmax - 0.01,
+				       skylist[0].regions[i][0].Dmin + 0.01, skylist[0].regions[i][0].Dmax - 0.01 );
+
+    // Modify the outlist filenames to match the output directory.  Note that the
+    // filenames are now owned by the list (and are not freed by SkyListFree)
+    SkyListSetFilenames (outlist, OUTDIR, "cpt");
+
     if (SKIP_EXIST) {
       int allFound = TRUE;
@@ -105,17 +119,4 @@
       continue;
     }
-
-    // find the list of output filenames (do not yet open)
-    // we need to check if we have already done the split
-
-    // change sky.regions[i].depth for these regions
-    // outlist = SkyListByPatch (sky, OUT_DEPTH, skylist[0].regions[i]);
-    outlist = SkyListChildrenByBounds (sky, skylist[0].regions[i][0].index, OUT_DEPTH,
-				       skylist[0].regions[i][0].Rmin + 0.01, skylist[0].regions[i][0].Rmax - 0.01,
-				       skylist[0].regions[i][0].Dmin + 0.01, skylist[0].regions[i][0].Dmax - 0.01 );
-
-    // Modify the outlist filenames to match the output directory.  Note that the
-    // filenames are now owned by the list (and are not freed by SkyListFree)
-    SkyListSetFilenames (outlist, OUTDIR, "cpt");
 
     // inherit the input catalog's format and mode (unless overridden)
Index: trunk/Ohana/src/dvosplit/test/.dvo
===================================================================
--- trunk/Ohana/src/dvosplit/test/.dvo	(revision 41500)
+++ 	(revision )
@@ -1,16 +1,0 @@
-catdir catdir.t0/
-resize 1600 800; region 0 0 90 ait; cgrid -c red; images
-cur
-catdir catdir.t0
-region 239 -29.5 1.0
-skycat
-skycat -all
-skycat -c red
-skycat -c blue
-catdir catdir.t0
-skycat -c red
-skycat -c red -all
-catdir catdir.example
-catdir catdir.t0
-skycat -c blue
-quti
Index: trunk/Ohana/src/dvosplit/test/catdir.example/.dvo
===================================================================
--- trunk/Ohana/src/dvosplit/test/catdir.example/.dvo	(revision 41500)
+++ 	(revision )
@@ -1,7 +1,0 @@
-catdir .
-skyregion -10 370 -90 90
-imextract ra dec
-skyregion -10 370 -90 90
-imextract ra dec
-catdir .
-skyregion -10 370 -90 90
Index: trunk/Ohana/src/dvosplit/test/catdir.example/.mana
===================================================================
--- trunk/Ohana/src/dvosplit/test/catdir.example/.mana	(revision 41500)
+++ 	(revision )
@@ -1,1 +1,0 @@
-echo {7348 - 2952}
