Skip to content
GitLab
Menu
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
ce553dfc
Commit
ce553dfc
authored
Aug 25, 2021
by
Gernot Maier
Browse files
simpler downloading scripts
parent
ef3484eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
download_parallel_list.sh
0 → 100755
View file @
ce553dfc
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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