Index: trunk/tools/eam/rawfix.20230221/src/finish.fixchip.sh
===================================================================
--- trunk/tools/eam/rawfix.20230221/src/finish.fixchip.sh	(revision 42449)
+++ trunk/tools/eam/rawfix.20230221/src/finish.fixchip.sh	(revision 42462)
@@ -1,3 +1,5 @@
 #!/bin/csh
+
+# this script is not actually used in regular rawfix processing?
 
 if ($#argv != 4) then
@@ -16,6 +18,9 @@
 endif
 
-if (! -d $topdir/$dateobs) then
-  echo "ERROR: missing dateobs directory $topdir/$dateobs"
+set yearobs = `echo $dateobs | awk '{print substr($1,1,4)}'`
+set basedir = $topdir/$yearobs
+
+if (! -d $basedir/$dateobs) then
+  echo "ERROR: missing dateobs directory $basedir/$dateobs"
   exit 3
 endif
@@ -24,10 +29,10 @@
 echo $fulldate
 
-$topdir/update_chip_stats.pl --topdir $topdir --dateobs $fulldate --stage $iter --chiplist gpc1.chips.txt
+update_chip_stats.pl --topdir $topdir --dateobs $fulldate --stage $iter --chiplist gpc1.chips.txt
 
 if ($QUALITY == "OK") then
-  $topdir/update.rawfix.sh $dateobs fixchip.done 
+  update.rawfix.sh $dateobs fixchip.done 
 else
-  $topdir/update.rawfix.sh $dateobs fixchip.fail 
+  update.rawfix.sh $dateobs fixchip.fail 
 endif
 
