Index: /trunk/tools/dvodb_calib/SAS37calib/run.dvolens
===================================================================
--- /trunk/tools/dvodb_calib/SAS37calib/run.dvolens	(revision 37909)
+++ /trunk/tools/dvodb_calib/SAS37calib/run.dvolens	(revision 37909)
@@ -0,0 +1,29 @@
+#!/bin/csh -f
+
+#if ($#argv !=1) then
+#    echo "usage: run.relphot (catdir)"
+#    exit 2
+#endif
+
+set catdir = $argv[1]
+
+
+
+
+# run relphot -images 
+
+# the boundary tree file in /data/ipp064.0/eugene/fforce.20140714 is
+# acceptable for the SAS, but it is wrong for the pole.  the best one
+# to use is: /data/ipp064.0/eugene/relastro.20140923/tess.3pi.fits
+
+#if (1) then
+  set options = ""
+  set options = "$options -update-objects"
+  set options = "$options -region 320 340 -10 10 "
+  set options = "$options -D CATDIR $catdir"
+  set options = "$options -update"
+  
+  echo dvolens $options
+       dvolens $options
+#endif
+
Index: /trunk/tools/dvodb_calib/SAS37calib/run.relphot
===================================================================
--- /trunk/tools/dvodb_calib/SAS37calib/run.relphot	(revision 37908)
+++ /trunk/tools/dvodb_calib/SAS37calib/run.relphot	(revision 37909)
@@ -1,8 +1,8 @@
 #!/bin/csh -f
 
-if ($#argv !=1) then
-    echo "usage: run.relphot (catdir)"
-    exit 2
-endif
+#if ($#argv !=1) then
+#    echo "usage: run.relphot (catdir)"
+#    exit 2
+#endif
 
 set catdir = $argv[1]
@@ -17,5 +17,5 @@
 # to use is: /data/ipp064.0/eugene/relastro.20140923/tess.3pi.fits
 
-if (1) then
+#if (1) then
   set options = ""
   set options = "$options -v"
@@ -41,7 +41,4 @@
   echo relphot $options
        relphot $options
-  if ($status) then 
-       echo "ERROR: failure running relphot"
-       echo -n "--done with relphot -- ";date 
-endif
+#endif
 
Index: /trunk/tools/dvodb_calib/SAS37calib/run.relphot.diff
===================================================================
--- /trunk/tools/dvodb_calib/SAS37calib/run.relphot.diff	(revision 37908)
+++ /trunk/tools/dvodb_calib/SAS37calib/run.relphot.diff	(revision 37909)
@@ -24,5 +24,5 @@
   set options = "$options -region 310 350 -15 15"
   set options = "$options -boundary-tree tess.3pi.fits"
-
+  set options = "$options -is-diff-db -reset -update"
 #  set options = "$options -parallel"
 
Index: /trunk/tools/dvodb_calib/SAS37calib/run.setphot
===================================================================
--- /trunk/tools/dvodb_calib/SAS37calib/run.setphot	(revision 37908)
+++ /trunk/tools/dvodb_calib/SAS37calib/run.setphot	(revision 37909)
@@ -16,6 +16,6 @@
   set ubercal = ucalqy_bigflat.fits
   
-  echo setphot -update -ubercal -no-metadata -D CATDIR $catdir $ubercal
-       setphot -update -ubercal -no-metadata -D CATDIR $catdir $ubercal
+  echo setphot -update -ubercal -D CATDIR $catdir $ubercal
+       setphot -update -ubercal -D CATDIR $catdir $ubercal
        #gene said no metadata if using ucalqy_bigflat.fits
 endif
