Changeset 20033 for trunk/Mars
- Timestamp:
- 01/09/21 14:30:59 (4 years ago)
- Location:
- trunk/Mars/hawc/processing
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/hawc/processing/extract-aux-data.sh
r20032 r20033 1 1 #!/bin/bash 2 3 # File containing the access credentials for the database 4 CREDENTIALS=credentials-read-only.cnf 2 5 3 6 # Specify the telescope for which to run the script. Replace '1' … … 73 76 "\ 74 77 | mysql \ 75 --defaults-file=~/.password.cnf \ 76 --user=hawcwrite \ 77 --host=ihp-pc45.ethz.ch \ 78 --database=hawcdata \ 78 --defaults-file=${CREDENTIALS} \ 79 79 --skip-column-names \ 80 80 --batch --raw \ 81 81 --compress \ 82 82 | \ 83 while IFS= read -rLINE83 while read -r -a LINE 84 84 do 85 86 85 # Extract night, runid, begin and end 87 NIGHT= `echo "$LINE" | awk -F"\t" '{print $1}'`88 RUNID= `echo "$LINE" | awk -F"\t" '{print $2}'`89 BEG= `echo "$LINE" | awk -F"\t" '{print $3}'`90 END= `echo "$LINE" | awk -F"\t" '{print $4}'`86 NIGHT=${LINE[0]} 87 RUNID=${LINE[1]} 88 BEG=${LINE[2]} 89 END=${LINE[3]} 91 90 92 91 # Split night into year, month, day -
trunk/Mars/hawc/processing/extract-raw-headers.sh
r20032 r20033 64 64 65 65 # Extract year, month and day from directory name 66 YEAR=`echo ${SUBDIR} | cut -f6 -d\/`66 YEAR=`echo ${SUBDIR} | cut -f6 -d\/` 67 67 MONTH=`echo ${SUBDIR} | cut -f7 -d\/` 68 DAY=`echo ${SUBDIR} | cut -f8 -d\/`68 DAY=`echo ${SUBDIR} | cut -f8 -d\/` 69 69 70 70 # Loop over all files in this subdirectory -
trunk/Mars/hawc/processing/run-callisto.sh
r20031 r20033 1 1 #!/bin/bash 2 3 # File containing the access credentials for the database 4 CREDENTIALS=credentials-read-only.cnf 2 5 3 6 # Specify the telescope for which to run the script. Replace '1' … … 30 33 "\ 31 34 | mysql \ 32 --defaults-file=~/.password.cnf \ 33 --user=hawcwrite \ 34 --host=ihp-pc45.ethz.ch \ 35 --database=hawcdata \ 35 --defaults-file=${CREDENTIALS} \ 36 36 --skip-column-names \ 37 37 --batch --raw \ 38 38 --compress \ 39 39 | \ 40 while IFS= read -rLINE40 while read -r -a LINE 41 41 do 42 43 42 # Extract night/runid for data file and calibration file 44 DATNIGHT= `echo "$LINE" | awk -F"\t" '{print $1}'`45 DATRUNID= `echo "$LINE" | awk -F"\t" '{print $2}'`46 DRSNIGHT= `echo "$LINE" | awk -F"\t" '{print $3}'`47 DRSRUNID= `echo "$LINE" | awk -F"\t" '{print $4}'`43 DATNIGHT=${LINE[0]} 44 DATRUNID=${LINE[1]} 45 DRSNIGHT=${LINE[2]} 46 DRSRUNID=${LINE[3]} 48 47 49 48 # Split both into year, month, day -
trunk/Mars/hawc/processing/run-root2sql.sh
r20031 r20033 1 1 #/bin/bash 2 3 # File containing the access credentials for the database 4 CREDENTIALS=credentials-read-only.cnf 2 5 3 6 # Specify the telescope for which to run the script. Replace '1' … … 30 33 "\ 31 34 | mysql \ 32 --defaults-file=~/.password.cnf \ 33 --user=hawcwrite \ 34 --host=ihp-pc45.ethz.ch \ 35 --database=hawcdata \ 35 --defaults-file=${CREDENTIALS} \ 36 36 --skip-column-names \ 37 37 --batch --raw \ 38 38 --compress \ 39 39 | \ 40 while IFS= read -rLINE40 while read -r -a LINE 41 41 do 42 43 42 # Get NIGHT and RUNID of all files 44 NIGHT= `echo "$LINE" | awk -F"\t" '{print $1}'`45 RUNID= `echo "$LINE" | awk -F"\t" '{print $2}'`43 NIGHT=${LINE[0]} 44 RUNID=${LINE[1]} 46 45 47 46 # Split into year, month, day -
trunk/Mars/hawc/processing/run-star.sh
r20031 r20033 1 1 #!/bin/bash 2 2 3 # File containing the access credentials for the database 4 CREDENTIALS=credentials-read-only.cnf 3 5 4 6 # Specify the telescope for which to run the script. Replace '1' … … 31 33 "\ 32 34 | mysql \ 33 --defaults-file=/home/tbretz/data/.password.cnf \ 34 --user=iceactwrite \ 35 --host=ihp-pc45.ethz.ch \ 36 --database=iceactdata \ 35 --defaults-file=${CREDENTIALS} \ 37 36 --skip-column-names \ 38 37 --batch --raw \ 39 38 --compress \ 40 39 | \ 41 while IFS= read -rLINE40 while read -r -a LINE 42 41 do 43 42 # Get NIGHT and RUNID of all files 44 NIGHT= `echo "$LINE" | awk -F"\t" '{print $1}'`45 RUNID= `echo "$LINE" | awk -F"\t" '{print $2}'`43 NIGHT=${LINE[0]} 44 RUNID=${LINE[1]} 46 45 47 46 # Split into year, month, day
Note:
See TracChangeset
for help on using the changeset viewer.