Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cta
MonteCarlo
ProdX-Download
Commits
dc25e080
Commit
dc25e080
authored
Aug 21, 2020
by
Gernot Maier
Browse files
downloading script (issue
#1
)
parent
03d5bae7
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
dc25e080
...
...
@@ -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
```
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)
...
...
download_paranal.sh
0 → 100755
View file @
dc25e080
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment