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 1.34392e+07
50.0 0
180 180
1
0 0
0 0
491.1 0
1.2 0
5 8
1
0.001 0.001
0 0
1 1
......
1.34392e+07 1.34392e+07
50 28.5
180 151.5
1 0
384.5 0
0 0
44817.3 0
1.2 8
5 1
0.001 0.001
0 0
1 1
......
#!/bin/bash #!/bin/bash
echo "view2 produces a series of XY slices a different z locations."
function print_the_help { function print_the_help {
echo "USAGE: $0 <PRIM_FILE> " echo "USAGE: $0 <PRIM_FILE> "
echo " OPTIONS: " echo " OPTIONS: "
echo " -t,--tag filename tag (default: view3)" echo " -t,--tag filename tag (default: view1)"
echo " -i,--input input primfile (default: ../../g4_0000.prim)"
exit exit
} }
...@@ -43,21 +43,15 @@ do ...@@ -43,21 +43,15 @@ do
done done
set -- "${POSITIONAL[@]}" # restore positional parameters 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 #https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html
# % dawncut a b c d input-file [output-file] # % dawncut a b c d input-file [output-file]
......
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