Index: /branches/eam_branches/ipp-20111122/Ohana/src/addstar/test/relphot.flatcorr.dvo
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/addstar/test/relphot.flatcorr.dvo	(revision 33135)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/addstar/test/relphot.flatcorr.dvo	(revision 33136)
@@ -68,4 +68,13 @@
 end
 
+macro go
+  init
+  mkzptfile
+  mkstars 500
+
+  mkdir testdata
+  mksequence testdata/t1
+end
+
 macro mksequence
   if ($0 != 2)
@@ -116,6 +125,8 @@
     # XX echo mkcmf test.in.txt $ROOT.$ix.$iy.cmf -date $date -time $time -radec $ra $dec -type PS1_V2 -coords -photcode GPC1.$FILTER.XY$ix\$iy
 
-    exec mkcmf test.in.txt $ROOT.$ix.$iy.cmf -mjd $MJD -radec $ra $dec -type PS1_V2 -coords -photcode GPC1.$FILTER.XY$ix\$iy
-    echo mkcmf test.in.txt $ROOT.$ix.$iy.cmf -mjd $MJD -radec $ra $dec -type PS1_V2 -coords -photcode GPC1.$FILTER.XY$ix\$iy
+    exec mkcmf test.in.txt $ROOT.$ix.$iy.cmf -mjd $MJD -radec $ra $dec -type PS1_V2 -coords -photcode GPC1.$FILTER.XY$ix\$iy -no-noise
+    echo mkcmf test.in.txt $ROOT.$ix.$iy.cmf -mjd $MJD -radec $ra $dec -type PS1_V2 -coords -photcode GPC1.$FILTER.XY$ix\$iy -no-noise
+    
+    exec addstar $ROOT.$ix.$iy.cmf -D CATDIR catdir.test -D CAMERA gpc1
   end
  end
@@ -147,4 +158,5 @@
   # eddie says: M_real = M_inst + zpt + ff_offset
   # thus, stars_mi = stars_mag - zpt - ff_offset = stars_m - offset
+  set stars_mi = zero(stars_m)
   for i 0 stars_mi[]
     $nx = cell_x[$i] 
