Commit 7bf1f57f authored by Gernot Maier's avatar Gernot Maier
Browse files

Add copy DL1 file lists; updated README

parent dc25e080
...@@ -99,3 +99,25 @@ proton_0deg.list ...@@ -99,3 +99,25 @@ proton_0deg.list
proton_180deg.list proton_180deg.list
proton.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)
#!/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
#!/bin/bash #!/bin/bash
# #
# copy file list into the analysis directories # copy file list into the analysis directories
# (lists required for the analysis with Evndisp)
#
if [ $# -lt 2 ]; then if [ $# -lt 2 ]; then
echo " echo "
......
Supports Markdown
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