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

downloading script (issue #1)

parent 03d5bae7
...@@ -68,6 +68,12 @@ uses DIRAC command ...@@ -68,6 +68,12 @@ uses DIRAC command
./getRawFilesFromGRID-DIRAC.sh Prod5_LaPalma_AdvancedBaseline_NSB1x/Prod5_LaPalma_AdvancedBaseline_NSB1x_gamma-diffuse_North_20deg_DL0.GRID.list Prod5_LaPalma_AdvancedBaseline_NSB1x/gamma_cone 100 ./getRawFilesFromGRID-DIRAC.sh Prod5_LaPalma_AdvancedBaseline_NSB1x/Prod5_LaPalma_AdvancedBaseline_NSB1x_gamma-diffuse_North_20deg_DL0.GRID.list Prod5_LaPalma_AdvancedBaseline_NSB1x/gamma_cone 100
``` ```
Start downloading in parallel for all particle types (needs adjustment for data set and data level):
```
./download_paranal.sh
```
(this obviously takes quite a while) (this obviously takes quite a while)
......
#!/bin/bash
#
# simple script which allows to download
# all particle types simulatenously
#
DD="Prod5_Paranal_AdvancedBaseline_NSB1x"
DL="DL0"
ZE="20deg"
mkdir -p tmp_log
for P in proton gamma_cone gamma_onSource electron
do
if [[ ${P} == "gamma_cone" ]]; then
PP="gamma-diffuse"
elif [[ ${P} == "gamma_onSource" ]]; then
PP="gamma"
else
PP=${P}
fi
for A in North South
do
rm -f tmp_log/${P}_${A}.log
./getRawFilesFromGRID-DIRAC.sh ${DD}/${DD}_${PP}_${A}_${ZE}_${DL}.GRID.list ${DD}/${P}/ 100 &> tmp_log/${P}_${A}.log &
sleep 10
done
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