Changeset 8682
- Timestamp:
- 08/20/07 13:03:00 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8680 r8682 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2007/08/20 Stefan Ruegamer 22 23 * datacenter/scripts/setup 24 - changed number of allowed processes 25 26 * datacenter/scripts/movingrawfiles 27 - changed login server from apollo to dc09 28 - removed lines for moving files from fromlapalma as the transfer 29 is not working anymore with finished files 30 - added comment 31 32 * datacenter/scripts/movingrawfiles_OK 33 - script for moving files according to the new "_OK" structure in 34 the fromlapalma folder 35 36 * datacenter/scripts/checkmd5sum 37 - added automatic detection of the L number 38 - added check for already existing output files 39 - added description 40 41 * resources/calibration_spline.rc 42 - added factors for period 56 and 57 (same value as for 55) 43 44 45 20 46 21 47 2007/08/20 Thomas Bretz -
trunk/MagicSoft/Mars/datacenter/scripts/checkmd5sum
r8517 r8682 1 #!/bin/bash 2 echo "Please specify the tape number (e.g. 3MG005L3)." 1 #!/bin/sh 2 # 3 # ======================================================================== 4 # 5 # * 6 # * This file is part of MARS, the MAGIC Analysis and Reconstruction 7 # * Software. It is distributed to you in the hope that it can be a useful 8 # * and timesaving tool in analysing Data of imaging Cerenkov telescopes. 9 # * It is distributed WITHOUT ANY WARRANTY. 10 # * 11 # * Permission to use, copy, modify and distribute this software and its 12 # * documentation for any purpose is hereby granted without fee, 13 # * provided that the above copyright notice appear in all copies and 14 # * that both that copyright notice and this permission notice appear 15 # * in supporting documentation. It is provided "as is" without express 16 # * or implied warranty. 17 # * 18 # 19 # 20 # Author(s): Stefan Ruegamer 05/2007 <mailto:snruegam@astro.uni-wuerzburg.de> 21 # 22 # Copyright: MAGIC Software Development, 2000-2007 23 # 24 # 25 # ======================================================================== 26 # 27 # This script is checking the md5 sums of files read from tape. It 28 # computes the checksums for the extracted files and compares them with 29 # the checksums from La Palma, read out from the md5 sum file which is 30 # transferred together with the logfile. 31 # 32 # The script will be automised by being executed after reading tapes with 33 # the not-yet finished script readlapalmatapes. At the moment it is being 34 # executed by hand. 35 # 36 37 echo "Please specify the tape number (e.g. 3MG005)." 3 38 read no 4 39 echo "Thank you. Your query is being processed. This may take some time." 5 40 6 41 checkpath=/home/lapalma/tapecont/cont/muxdata/checksums 7 file=/home/lapalma/tapecont/cont/muxdata/tape_${no}.md5 42 file=/home/lapalma/tapecont/cont/muxdata/tape_${no}L*.md5 43 L=`echo $file | cut -c49` 44 id=${no}L${L} 45 8 46 if [ ! -f $file ] 9 47 then 10 echo "tape $file not found ."48 echo "tape $file not found -> aborting" 11 49 exit 12 50 fi 13 51 14 date | tee ${checkpath}/tape_${no}.md5.lapalma | tee ${checkpath}/tape_${no}.md5.wue 52 if [ ${checkpath}/tape_${id}.md5.lapalma ] || [ -f ${checkpath}/tape_${id}.md5.wue ] 53 then 54 echo "Output files already existing. Are you sure you wish to continue (yes/no)?" 55 read cont 56 if [ ! $cont == "yes" ] 57 then 58 echo "Aborting." 59 exit 60 fi 61 fi 62 63 date | tee ${checkpath}/tape_${id}.md5.lapalma | tee ${checkpath}/tape_${id}.md5.wue 15 64 16 65 # read the tapecont file line by line … … 23 72 sum=($line) 24 73 # reformat the files and checksums correctly and compare them 25 echo "${sum[1]} ${sum[0]}" >> ${checkpath}/tape_${ no}.md5.lapalma74 echo "${sum[1]} ${sum[0]}" >> ${checkpath}/tape_${id}.md5.lapalma 26 75 27 ssh -nx phoenix nice -n 19 /opt/csw/bin/gmd5sum /magic/datacenter/fromtape/${sum[0]} | sed -e 's/\/magic\/datacenter\/fromtape\///' >> ${checkpath}/tape_${ no}.md5.wue28 #md5sum /magic/datacenter/fromtape/${sum[0]} | sed -e 's/\/magic\/datacenter\/fromtape\///' >> ${checkpath}/tape_${ no}.md5.wue76 ssh -nx phoenix nice -n 19 /opt/csw/bin/gmd5sum /magic/datacenter/fromtape/${sum[0]} | sed -e 's/\/magic\/datacenter\/fromtape\///' >> ${checkpath}/tape_${id}.md5.wue 77 #md5sum /magic/datacenter/fromtape/${sum[0]} | sed -e 's/\/magic\/datacenter\/fromtape\///' >> ${checkpath}/tape_${id}.md5.wue 29 78 fi 30 79 done < $file 31 80 32 date | tee -a ${checkpath}/tape_${ no}.md5.lapalma | tee -a ${checkpath}/tape_${no}.md5.wue81 date | tee -a ${checkpath}/tape_${id}.md5.lapalma | tee -a ${checkpath}/tape_${id}.md5.wue 33 82 34 if [ ! -f ${checkpath}/tape_${ no}.md5.lapalma ] || [ ! -f ${checkpath}/tape_${no}.md5.wue ]83 if [ ! -f ${checkpath}/tape_${id}.md5.lapalma ] || [ ! -f ${checkpath}/tape_${id}.md5.wue ] 35 84 then 36 echo "No output files written! Something went wrong... "85 echo "No output files written! Something went wrong... -> aborting" 37 86 exit 38 87 fi 39 88 40 echo "Wrote checksums to ${checkpath}/tape_${ no}.md5.lapalma and ${checkpath}/tape_${no}.md5.wue. Comparing now."89 echo "Wrote checksums to ${checkpath}/tape_${id}.md5.lapalma and ${checkpath}/tape_${id}.md5.wue. Comparing now." 41 90 42 91 43 92 # check for differences in the checksums 44 output=`diff ${checkpath}/tape_${ no}.md5.lapalma ${checkpath}/tape_${no}.md5.wue`93 output=`diff ${checkpath}/tape_${id}.md5.lapalma ${checkpath}/tape_${id}.md5.wue` 45 94 46 95 if [ "$output" = "" ] -
trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
r8410 r8682 19 19 # 20 20 # Author(s): Daniela Dorner 08/2004 <mailto:dorner@astro.uni-wuerzburg.de> 21 # Author(s): Stefan Ruegamer 02/2007 <mailto:snruegam@astro.uni-wuerzburg.de> 21 22 # 22 23 # Copyright: MAGIC Software Development, 2000-2007 … … 28 29 # /magic/datacenter/fromtape/rawdata to the structure 29 30 # /magic/data/rawfiles/YYYY/MM/DD 31 # 32 # As the data transfer is at the moment not working via .finished files, 33 # you have to use the script movingrawfiles_OK for moving these data 30 34 # 31 35 … … 48 52 # output for chmod with -v or -c (only changes) 49 53 50 printprocesslog "INFO moving directories from fromlapalma to fromtape" 54 # outdated, .finished files are no longer used 55 #printprocesslog "INFO moving directories from fromlapalma to fromtape" 51 56 # find directories which have to be copied 52 dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6`53 if [ ! "$dirs" == "" ]54 then57 #dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6` 58 #if [ ! "$dirs" == "" ] 59 #then 55 60 # change permission for this directories 56 ssh lapalma@apollochmod -R g+w $dirs >> $scriptlog 2>&161 #ssh lapalma@dc09 chmod -R g+w $dirs >> $scriptlog 2>&1 57 62 # move directories to the tapedirectory 58 mv -v $dirs /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&159 fi63 #mv -v $dirs /magic/datacenter/fromtape/rawdata/ >> $scriptlog 2>&1 64 #fi 60 65 61 66 printprocesslog "INFO moving directories from muxdata to rawdata" … … 80 85 printprocesslog "INFO moving rawfiles to $datapath/rawfiles" 81 86 for rawfile in $rawfiles 82 do 87 do 83 88 # workaround for rawfiles with wrong timing 84 89 # newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'` … … 86 91 newdir=`dirname $newrawfile` 87 92 makedir $newdir >> $scriptlog 2>&1 88 93 89 94 mv -v $rawfile $newrawfile >> $scriptlog 2>&1 90 95 done -
trunk/MagicSoft/Mars/datacenter/scripts/setup
r8527 r8682 68 68 max=18 #maximum number of processes 69 69 70 #scripts=( "runcallisto" "runstar" "runganymed" "dodatacheck" ) 71 #scriptscolname=( "fCallisto" "fStar" "fGanymed" "fDataCheckDone" ) 72 datascripts=( "runcallisto" "runstar" "runganymed" ) 73 datascriptscolname=( "fCallisto" "fStar" "fGanymed" ) 70 #scripts=( "runcallisto" "runstar" "runganymed" "dodatacheck" ) 71 #scriptscolname=( "fCallisto" "fStar" "fGanymed" "fDataCheckDone" ) 72 datascripts=( "runcallisto" "runstar" "runganymed" ) 73 datascriptscolname=( "fCallisto" "fStar" "fGanymed" ) 74 74 75 75 #hour: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 76 pnototal=( 2 5 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25)77 pnototalwe=( 2 5 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25)76 pnototal=( 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26) 77 pnototalwe=( 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26 26) 78 78 79 pnocallisto=( 12 12 12 12 12 1 2 12 10 9 8 7 7 7 7 7 7 7 7 7 8 9 10 1212 )79 pnocallisto=( 12 12 12 12 12 10 10 9 9 8 8 8 8 8 8 8 8 8 8 9 9 10 10 12 ) 80 80 pnostar=( 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 ) 81 81 pnoganymed=( 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 ) … … 93 93 94 94 # values for mc production 95 mcscripts=( "runcorsika" "runreflector" "runcamera" ) 96 mcscriptscolname=( "fCorsikaFileAvail" "fReflectorFileAvail" "fCameraFileAvail" ) 95 mcscripts=( "runcorsika" "runreflector" "runcamera" ) 96 mcscriptscolname=( "fCorsikaFileAvail" "fReflectorFileAvail" "fCameraFileAvail" ) 97 97 98 98 #hour: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 -
trunk/MagicSoft/Mars/resources/calibration_spline.rc
r8672 r8682 53 53 54: 1.03 54 54 55: 1.03 55 56: 1.03 56 57: 1.03
Note:
See TracChangeset
for help on using the changeset viewer.