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
7bf1f57f
Commit
7bf1f57f
authored
Aug 21, 2020
by
Gernot Maier
Browse files
Add copy DL1 file lists; updated README
parent
dc25e080
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
7bf1f57f
...
...
@@ -99,3 +99,25 @@ proton_0deg.list
proton_180deg.list
proton.list
```
# DL1 files
## Download DL1 tar packages from GRID
-
file lists must be prepared for data sets for DL1 (e.g., Prod5_LaPalma_AdvancedBaseline_NSB1x_DL1)
-
download_parallel.sh must be modified to DL1
## Copy DL1 root files to analysis directory
Use script
*copy_file_lists.sh*
, which requires adjustments at the top:
-
target directory for analysis
-
list of array types
-
local DL1 data directory
```
./copy_DL1files.sh copy
```
Note: will take a while (many files)
copy_DL1files.sh
0 → 100755
View file @
7bf1f57f
#!/bin/bash
#
# copy DL1 files from tar files to target directory
#
# ./copy_DL1files.sh
#
if
[
$#
-eq
0
]
;
then
echo
"./copy_DL1files.sh copy"
echo
echo
"note the hardwired values"
fi
# hardwired values
DSET
=
"Prod5_LaPalma_AdvancedBaseline_NSB1x_DL1"
PLIST
=
"gamma_onSource gamma_cone proton electron"
PLIST
=
"gamma_onSource gamma_cone proton"
# targetdir
OSET
=
"prod5-LaPalma-20deg-w01-LL"
########################
# 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"
)
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
echo
$ODIR
mkdir
-p
${
ODIR
}
find
${
DSET
}
/
$P
-name
"*.tar.gz"
-print
-exec
tar
--overwrite
-C
${
ODIR
}
-xvzf
{}
--wildcards
"*
${
A
}
*"
\;
done
done
copy_file_lists.sh
View file @
7bf1f57f
#!/bin/bash
#
# copy file list into the analysis directories
# (lists required for the analysis with Evndisp)
#
if
[
$#
-lt
2
]
;
then
echo
"
...
...
download_para
na
l.sh
→
download_para
lle
l.sh
View file @
7bf1f57f
File moved
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