Commit cdf3785b authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: .DAWN_1.default

	modified:   .DAWN_1.history
	modified:   generate_eps
parent 89d02e0a
1.34392e+07
50.0
0
180
1
0
0
491.1
1.2
5
0
0
8
1
0.001
0
1
......
1.34392e+07
50
180
1
384.5
28.5
151.5
0
0
0
44817.3
1.2
5
0
8
1
0.001
0
1
......
#!/bin/bash
echo "view2 produces a series of XY slices a different z locations."
function print_the_help {
echo "USAGE: $0 <PRIM_FILE> "
echo " OPTIONS: "
echo " -t,--tag filename tag (default: view3)"
echo " -i,--input input primfile (default: ../../g4_0000.prim)"
echo " -t,--tag filename tag (default: view1)"
exit
}
......@@ -43,21 +43,15 @@ do
done
set -- "${POSITIONAL[@]}" # restore positional parameters
#jcp ${INPUT_FILE} ${FILE_TAG}_input.prim
#j# units are mm
#jdawncut 0 0 -1 -1500 ${INPUT_FILE} ${FILE_TAG}.prim
#jdawn -d ${FILE_TAG}.prim
#jps2pdf ${FILE_TAG}.eps ${FILE_TAG}.pdf
#jpdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile
dawncut 0 0 -1 1 ${INPUT_FILE} ${FILE_TAG}a_temp0.prim
dawncut 0 0 1 1 ${FILE_TAG}a_temp0.prim ${FILE_TAG}a.prim
dawn -d ${FILE_TAG}a.prim
ps2pdf ${FILE_TAG}a.eps ${FILE_TAG}a_full.pdf
gs -o ${FILE_TAG}a.pdf -sDEVICE=pdfwrite \
-c "[/CropBox [50 175 550 675] /PAGES pdfmark" \
-f ${FILE_TAG}a_full.pdf
pdftoppm ${FILE_TAG}a.pdf ${FILE_TAG}a -png -singlefile -cropbox
# units are mm
dawncut 0 0 -1 1500 ${INPUT_FILE} ${FILE_TAG}.prim
dawn ${FILE_TAG}.prim
ps2pdf ${FILE_TAG}.eps ${FILE_TAG}_full.pdf
gs -o ${FILE_TAG}.pdf -sDEVICE=pdfwrite \
-c "[/CropBox [50 175 550 675] /PAGES pdfmark" \
-f ${FILE_TAG}_full.pdf
pdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile -cropbox
#https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html
# % dawncut a b c d input-file [output-file]
......
Markdown is supported
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