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
dd88fa8f
Commit
dd88fa8f
authored
Aug 24, 2020
by
Gernot Maier
Browse files
add target directory EVNDISP
parent
d6aef9d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
copy_DL1files.sh
View file @
dd88fa8f
...
...
@@ -13,23 +13,24 @@ fi
# hardwired values
DSET
=
"Prod5_LaPalma_AdvancedBaseline_NSB1x_DL1"
PLIST
=
"gamma_onSource gamma_cone proton electron"
PLIST
=
"gamma_onSource gamma_cone proton"
PLIST
=
"gamma_onSource gamma_cone proton electron"
# targetdir
OSET
=
"prod5-LaPalma-20deg-
w01-LL
"
OSET
=
"prod5-LaPalma-20deg-
EVNDISP
"
########################
# list of arrays
# South
# declare -a ARRAY=("BL-0LSTs15MSTs50SSTs-MSTF" "BL-0LSTs15MSTs50SSTs-MSTN" "BL-4LSTs25MSTs70SSTs-MSTF" "BL-4LSTs25MSTs70SSTs-MSTN" )
# North
declare
-a
ARRAY
=(
"BL-4LSTs05MSTs-MSTF"
"BL-4LSTs09MSTs-MSTF"
"BL-4LSTs15MSTs-MSTF"
)
declare
-a
ARRAY
=(
"BL-4LSTs15MSTs-MSTN"
)
for
P
in
$PLIST
do
for
A
in
"
${
ARRAY
[@]
}
"
do
# files are copied here
ODIR
=
${
CTA_USER_DATA_DIR
}
/analysis/AnalysisData/
${
OSET
}
/N.
${
A
}
/
$P
ODIR
=
${
CTA_USER_DATA_DIR
}
/analysis/AnalysisData/
${
OSET
}
/N.
${
A
}
/
EVNDISP/
$P
echo
$ODIR
mkdir
-p
${
ODIR
}
find
${
DSET
}
/
$P
-name
"*.tar.gz"
-print
-exec
tar
--overwrite
-C
${
ODIR
}
-xvzf
{}
--wildcards
"*
${
A
}
*"
\;
...
...
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