Index: trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles	(revision 7426)
+++ trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles	(revision 7460)
@@ -20,24 +20,30 @@
 #   Author(s): Daniela Dorner  08/2004 <mailto:dorner@astro.uni-wuerzburg.de>
 #
-#   Copyright: MAGIC Software Development, 2000-2004
+#   Copyright: MAGIC Software Development, 2000-2006
 #
 #
 # ========================================================================
+#
+# This script is moving the rawfiles from the directory 
+# /magic/datacenter/fromtape/rawdata to the structure 
+# /magic/data/rawfiles/YYYY/MM/DD
+# 
 
 umask 0002
 
+# change permission for files 
+# perhaps needed as the tapes are read by the user tape 
 ssh tape@dc07 chmod -R g+w /magic/datacenter/fromtape/rawdata/*
 # output for chmod with -v or -c (only changes)
+# for files transferes via internet perhaps also needed for user lapalma
 
+# find rawfiles
 rawfiles=`find /magic/datacenter/fromtape/rawdata/ -name '*.*'`
-
 for rawfile in $rawfiles
 do 
-#  echo "file: "$rawfile
+# workaround for rawfiles with wrong timing
 #  newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'`
   newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles/g' -e 's/_/\//1' -e 's/_/\//1'`
-#  echo "new file: "$newrawfile
   newdir=`dirname $newrawfile`
-#  echo "newdir: "$newdir
   if [ ! -d $newdir ]
   then
@@ -47,5 +53,4 @@
 
   mv -v $rawfile $newrawfile
-
 done
 
