Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add plotCryoSummary #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions bin/plotCryoSummary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/bin/bash
#
#------------------------------------------------------------------------
function usage {
cat <<-EOM
Usage ${0##*/} [stopTime]
stopTime ~ 2020-06-19T11:00:41-07:00
quote time if it contains spaces
Options:
-h (print help msg)
-d <duration> [default is 10m]
EOM
exit 1
}
#-- process commandline options
#
duration=
while getopts "htd:" Option
do
case $Option in
h ) usage;;
d ) duration=$OPTARG;;
t ) timebins="yes";;
* ) ${ECHO} "Unimplemented option chosen.";; # Default.
esac
done
shift $((OPTIND - 1))

if [ $# -gt 1 ]; then
usage
fi

if [ $1"XXX" == "XXX" ] ; then
st="--stop "$(date --iso-8601=s)
else
st="--stop ${1}"
fi

declare -a regexes
regexes+=('hex/Cryo1/.*Tmp')
regexes+=('hex/Cryo2/.*Tmp')
regexes+=('hex/Cryo3/.*Tmp')
regexes+=('hex/Cryo4/.*Tmp')
regexes+=('hex/Cryo5/.*Tmp')
regexes+=('hex/Cryo6/.*Tmp')

if [ $duration"XXX" == "XXX" ] ; then
duration=10m
fi

if [ $timebins ] ; then
timebins='--timebins'
fi

trender.py ${st} --dur ${duration} ${timebins} --title "Cryo Summary" --plot --layout 3x2 --outside --overlayregex -- "${regexes[@]}"