From b795e46846ad75d98a6289aca357c6f67f7c6083 Mon Sep 17 00:00:00 2001 From: Whitney Armstrong Date: Thu, 17 Dec 2020 02:21:06 -0600 Subject: [PATCH 1/2] modified: generate_eps --- scripts/view3/generate_eps | 51 +++++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/scripts/view3/generate_eps b/scripts/view3/generate_eps index 9dadba9..bf8e30d 100755 --- a/scripts/view3/generate_eps +++ b/scripts/view3/generate_eps @@ -1,10 +1,53 @@ #!/bin/bash +echo "view3 produces a series of XY slices a different z locations." + +function print_the_help { + echo "USAGE: $0 " + echo " OPTIONS: " + echo " -t,--tag filename tag (default: view1)" + exit +} + +FILE_TAG="view2" +INPUT_FILE="g4_0000.prim" + + +POSITIONAL=() +while [[ $# -gt 0 ]] +do + key="$1" + + case $key in + -h|--help) + shift # past argument + print_the_help + ;; + -t|--tag) + FILE_TAG="$2" + shift # past argument + shift # past value + ;; + -i|--input) + INPUT_FILE="$2" + shift # past argument + shift # past value + ;; + *) # unknown option + #POSITIONAL+=("$1") # save it in an array for later + echo "unknown option $1" + print_the_help + shift # past argument + ;; + esac +done +set -- "${POSITIONAL[@]}" # restore positional parameters + # units are mm -dawncut 0 0 -1 -1500 $1 view3.prim -dawn view3.prim -ps2pdf view3.eps view3.pdf -pdftoppm view3.pdf view3 -png -singlefile +dawncut 0 0 -1 -1500 ${INPUT_FILE} ${FILE_TAG}.prim +dawn -d ${FILE_TAG}.prim +ps2pdf ${FILE_TAG}.eps ${FILE_TAG}.pdf +pdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile #https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html -- GitLab From 7166ab75a6dbe7f9bbd21cde01a0ba9def1fe025 Mon Sep 17 00:00:00 2001 From: Whitney Armstrong Date: Thu, 17 Dec 2020 12:01:36 -0600 Subject: [PATCH 2/2] modified: topside.xml --- topside.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topside.xml b/topside.xml index 05329a7..a92d64d 100644 --- a/topside.xml +++ b/topside.xml @@ -107,7 +107,6 @@ - -- GitLab