Commit ce553dfc authored by Gernot Maier's avatar Gernot Maier
Browse files

simpler downloading scripts

parent ef3484eb
#!/bin/bash
#
# even simpler script which allows to download
# all particle types simulatenously
#
DD="Prod3b_Paranal_SCTAlpha_DL1"
ZE="20deg"
DL="DL1"
TMPDIR="tmp_log3"
mkdir -p ${TMPDIR}
LL=$(ls -1 ${DD}/*.GRID.list)
for L in ${LL}
do
for PA in gamma-diffuse proton electron gamma
do
if [[ ${L} == *"${PA}"* ]]; then
PP=${PA}
if [[ ${PA} == "gamma-diffuse" ]]; then
P="gamma_cone"
elif [[ ${PA} == "gamma" ]]; then
P="gamma_onSource"
else
P=${PA}
fi
break
fi
done
if [[ ${L} == *"North"* ]]; then
A="North"
else
A="South"
fi
rm -f ${TMPDIR}/tmp_${P}_${A}.log
./getRawFilesFromGRID-DIRAC.sh ${L} ${DD}/${P} 100 &> ${TMPDIR}/tmp_${P}_${A}.log &
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment