Index: trunk/Ohana/src/opihi/dvo/ImageSelection.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/ImageSelection.c	(revision 14285)
+++ trunk/Ohana/src/opihi/dvo/ImageSelection.c	(revision 14286)
@@ -9,5 +9,5 @@
 
 /* load images based on parameters and region, etc */
-int SetImageSelection (int mode, int RegionSelect) {
+int SetImageSelection (int mosaicMode, int RegionSelect) {
 
   int Ngraph;
@@ -29,10 +29,5 @@
   TimeSelect = GetTimeSelection (&tzero, &tend);
 
-  switch (mode) {
-    case MEAS_XCCD:
-    case MEAS_YCCD:
-      break;
-    case MEAS_XMOSAIC: 
-    case MEAS_YMOSAIC:
+  if (mosaicMode) {
       /* mosaic defines a frame with 0,0 at the mosaic center, and 1 arcsec / pixel */
       mosaic.crpix1 = mosaic.crpix2 = 0.0;
@@ -42,7 +37,4 @@
       mosaic.Npolyterms = 0;
       strcpy (mosaic.ctype, "RA---SIN");
-      break;
-    default:
-      return (TRUE);
   }
 
Index: trunk/Ohana/src/opihi/dvo/calmextract.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/calmextract.c	(revision 14285)
+++ trunk/Ohana/src/opihi/dvo/calmextract.c	(revision 14286)
@@ -69,5 +69,5 @@
   /* load region corresponding to selection above */
   if ((skylist = SelectRegions (RegionName, RegionList)) == NULL) goto escape;
-  if (!SetImageSelection (MEAS_XMOSAIC, ((RegionName == NULL) && (RegionList == NULL)))) goto escape;
+  if (!SetImageSelection (TRUE, ((RegionName == NULL) && (RegionList == NULL)))) goto escape;
 
   for (Nr = 0; Nr < skylist[0].Nregions; Nr++) {
Index: trunk/Ohana/src/opihi/dvo/dmagmeas.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/dmagmeas.c	(revision 14285)
+++ trunk/Ohana/src/opihi/dvo/dmagmeas.c	(revision 14286)
@@ -48,5 +48,5 @@
   /* load region corresponding to selection above */
   if ((skylist = SelectRegions (RegionName, RegionList)) == NULL) goto escape;
-  if (!SetImageSelection (param, ((RegionName == NULL) && (RegionList == NULL)))) goto escape;
+  if (!SetImageSelection (((param == MEAS_XMOSAIC) || (param == MEAS_YMOSAIC)), ((RegionName == NULL) && (RegionList == NULL)))) goto escape;
 
   /* init vectors to save data */
