Index: /branches/eam_branches/ohana.20170822/src/libdvo/src/dvo_catalog_split.c
===================================================================
--- /branches/eam_branches/ohana.20170822/src/libdvo/src/dvo_catalog_split.c	(revision 40222)
+++ /branches/eam_branches/ohana.20170822/src/libdvo/src/dvo_catalog_split.c	(revision 40223)
@@ -464,7 +464,7 @@
   catalog[0].Nmissing_disk = Nmissing;
   catalog[0].Nsecfilt_disk = Naverage * Nsecfilt;
-  catalog[0].Nlensing_disk  = Nlensing;
-  catalog[0].Nlensobj_disk  = Nlensobj;
-  catalog[0].Nstarpar_disk  = Nstarpar;
+  catalog[0].Nlensing_disk = Nlensing;
+  catalog[0].Nlensobj_disk = Nlensobj;
+  catalog[0].Nstarpar_disk = Nstarpar;
   catalog[0].Ngalphot_disk = Ngalphot;
 
Index: /branches/eam_branches/ohana.20170822/src/libdvo/src/dvo_convert.c
===================================================================
--- /branches/eam_branches/ohana.20170822/src/libdvo/src/dvo_convert.c	(revision 40222)
+++ /branches/eam_branches/ohana.20170822/src/libdvo/src/dvo_convert.c	(revision 40223)
@@ -1015,4 +1015,5 @@
 //    FORMAT_CASE (PS1_V3,          PS1_V3);
 //    FORMAT_CASE (PS1_V4,          PS1_V4);
+      FORMAT_CASE (PS1_V5,          PS1_V5_R1);
       FORMAT_CASE (PS1_V6,          PS1_V6);
       FORMAT_CASE (PS1_V5_LOAD,     PS1_V5_LOAD);
Index: /branches/eam_branches/ohana.20170822/src/relastro/include/relastro.h
===================================================================
--- /branches/eam_branches/ohana.20170822/src/relastro/include/relastro.h	(revision 40222)
+++ /branches/eam_branches/ohana.20170822/src/relastro/include/relastro.h	(revision 40223)
@@ -378,4 +378,5 @@
 int    SKIP_CFH;
 
+int    UPDATE_ALL_MEASURE;
 int    UPDATE_PS1_STACK_MEASURE;
 int    UPDATE_PS1_CHIP_MEASURE;
Index: /branches/eam_branches/ohana.20170822/src/relastro/src/UpdateMeasures.c
===================================================================
--- /branches/eam_branches/ohana.20170822/src/relastro/src/UpdateMeasures.c	(revision 40222)
+++ /branches/eam_branches/ohana.20170822/src/relastro/src/UpdateMeasures.c	(revision 40223)
@@ -167,4 +167,5 @@
       }
     set_measure_done:
+      continue; // XXX this line is needed only to support the label above
     }
     if (VERBOSE) fprintf (stderr, "%s : Noff ori RA %d ( %d %d %d ), Noff ori DEC %d ( %d %d %d )\n", catalog[i].filename, NoffRAori, NoffRAchip, NoffRAstack, NoffRAwarp, NoffDECori, NoffDECchip, NoffDECstack, NoffDECwarp);
Index: /branches/eam_branches/ohana.20170822/src/relastro/src/UpdateObjectOffsets.c
===================================================================
--- /branches/eam_branches/ohana.20170822/src/relastro/src/UpdateObjectOffsets.c	(revision 40222)
+++ /branches/eam_branches/ohana.20170822/src/relastro/src/UpdateObjectOffsets.c	(revision 40223)
@@ -208,13 +208,14 @@
     if (CHECK_MEASURE_TO_IMAGE) strextend (&command, "-check-measures");
 
+    if (UPDATE_ALL_MEASURE)       strextend (&command, "-update-all-cameras");
     if (UPDATE_PS1_STACK_MEASURE) strextend (&command, "-update-ps1-stack");
-    if (UPDATE_PS1_CHIP_MEASURE) strextend (&command, "-update-ps1-chip");
-    if (UPDATE_HSC_MEASURE)    	 strextend (&command, "-update-hsc");
-    if (UPDATE_CFH_MEASURE)    	 strextend (&command, "-update-cfh");
-
-    if (UPDATE)        strextend (&command, "-update");
+    if (UPDATE_PS1_CHIP_MEASURE)  strextend (&command, "-update-ps1-chip");
+    if (UPDATE_HSC_MEASURE)    	  strextend (&command, "-update-hsc");
+    if (UPDATE_CFH_MEASURE)    	  strextend (&command, "-update-cfh");
+
+    if (UPDATE)           strextend (&command, "-update");
     if (RESET_BAD_IMAGES) strextend (&command, "-reset-bad-images");
-    if (USE_BASIC_CHECK) strextend (&command, "-basic-image-search");
-    if (USE_ALL_IMAGES)      strextend (&command, "-use-all-images");
+    if (USE_BASIC_CHECK)  strextend (&command, "-basic-image-search");
+    if (USE_ALL_IMAGES)   strextend (&command, "-use-all-images");
 
     if (MinBadQF > 0.0)        strextend (&command, "-min-bad-psfqf %f", MinBadQF); 
@@ -347,8 +348,9 @@
     if (CHECK_MEASURE_TO_IMAGE) strextend (&command, "-check-measures");
 
+    if (UPDATE_ALL_MEASURE)       strextend (&command, "-update-all-cameras");
     if (UPDATE_PS1_STACK_MEASURE) strextend (&command, "-update-ps1-stack");
-    if (UPDATE_PS1_CHIP_MEASURE) strextend (&command, "-update-ps1-chip");
-    if (UPDATE_HSC_MEASURE)    	 strextend (&command, "-update-hsc");
-    if (UPDATE_CFH_MEASURE)    	 strextend (&command, "-update-cfh");
+    if (UPDATE_PS1_CHIP_MEASURE)  strextend (&command, "-update-ps1-chip");
+    if (UPDATE_HSC_MEASURE)    	  strextend (&command, "-update-hsc");
+    if (UPDATE_CFH_MEASURE)    	  strextend (&command, "-update-cfh");
 
     if (UPDATE)        strextend (&command, "-update");
Index: /branches/eam_branches/ohana.20170822/src/relastro/src/args.c
===================================================================
--- /branches/eam_branches/ohana.20170822/src/relastro/src/args.c	(revision 40222)
+++ /branches/eam_branches/ohana.20170822/src/relastro/src/args.c	(revision 40223)
@@ -190,5 +190,5 @@
   }
   if ((RELASTRO_OP == OP_PARALLEL_IMAGES) || (RELASTRO_OP == OP_IMAGES)) {
-    if (APPLY_OFFSETS && !UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) {
+    if (APPLY_OFFSETS && !UPDATE_ALL_MEASURE && !UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) {
       fprintf (stderr, "for [-images or -parallel-images] with -apply-offsets, need to select at least one of -update-ps1-stack, -update-ps1-chip, -update-hsc, -update-cfh\n");
       exit (2);
@@ -895,4 +895,9 @@
   }
 
+  UPDATE_ALL_MEASURE = FALSE;
+  if ((N = get_argument (argc, argv, "-update-all-cameras"))) {
+    remove_argument (N, &argc, argv);
+    UPDATE_ALL_MEASURE = TRUE;
+  }
   UPDATE_PS1_STACK_MEASURE = FALSE;
   if ((N = get_argument (argc, argv, "-update-ps1-stack"))) {
@@ -916,5 +921,5 @@
   }
   if (RELASTRO_OP == OP_UPDATE_OFFSETS) {
-    if (!UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) {
+    if (!UPDATE_ALL_MEASURE && !UPDATE_PS1_STACK_MEASURE && !UPDATE_PS1_CHIP_MEASURE && !UPDATE_HSC_MEASURE && !UPDATE_CFH_MEASURE) {
       fprintf (stderr, "for -update-offsets, need to select at least one of -update-ps1-stack, -update-ps1-chip, -update-hsc, -update-cfh\n");
       exit (2);
