Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
detectors
topside
Commits
359a1539
Commit
359a1539
authored
May 11, 2021
by
Whitney Armstrong
Browse files
Testing animated gif generation
parent
8205fa08
Pipeline
#9609
passed with stages
in 6 minutes and 8 seconds
Changes
8
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
scripts/view12/.DAWN_1.history
View file @
359a1539
1.34392e+07
0.0
180
90
0
0
0
0
29
40
1
0.001
0
...
...
scripts/view12/generate_eps
View file @
359a1539
...
...
@@ -62,16 +62,18 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
echo
"view12 produces a series of slightly rotated XY slices a different z locations. Along beamline"
../../bin/dawn_tweak
--mag
40
# slice at z = 2m
# note the offset has to change with sign of the direction to cut in the opposite direction.
dawncut 0 0 1 2005
${
INPUT_FILE
}
${
FILE_TAG
}
b_temp0.prim
dawncut 0 0
-1
-2000
${
FILE_TAG
}
b_temp0.prim
${
FILE_TAG
}
b.prim
dawn
-d
${
FILE_TAG
}
b.prim
ps2pdf
${
FILE_TAG
}
b.eps
${
FILE_TAG
}
b_full.pdf
gs
-o
${
FILE_TAG
}
b.pdf
-sDEVICE
=
pdfwrite
\
-c
"[/CropBox [50 175 550 675] /PAGES pdfmark"
\
-f
${
FILE_TAG
}
b_full.pdf
pdftoppm
${
FILE_TAG
}
b.pdf
${
FILE_TAG
}
b
-png
-singlefile
-cropbox
#
dawncut 0 0 1 2005 ${INPUT_FILE} ${FILE_TAG}b_temp0.prim
#
dawncut 0 0 -1 -2000 ${FILE_TAG}b_temp0.prim ${FILE_TAG}b.prim
#
dawn -d ${FILE_TAG}b.prim
#
ps2pdf ${FILE_TAG}b.eps ${FILE_TAG}b_full.pdf
#
gs -o ${FILE_TAG}b.pdf -sDEVICE=pdfwrite \
#
-c "[/CropBox [50 175 550 675] /PAGES pdfmark" \
#
-f ${FILE_TAG}b_full.pdf
#
pdftoppm ${FILE_TAG}b.pdf ${FILE_TAG}b -png -singlefile -cropbox
original_file_tag
=
"
${
FILE_TAG
}
"
...
...
@@ -90,7 +92,7 @@ make_slice(){
rm
"
${
FILE_TAG
}
_temp0.prim"
rm
"
${
FILE_TAG
}
.prim"
}
for
zzz
in
$(
seq
5
0
50 200
0
)
;
for
zzz
in
$(
seq
0
2 13
0
)
;
do
make_slice
${
zzz
}
&
done
...
...
scripts/view13/.DAWN_1.history
View file @
359a1539
1.34392e+07
0.0
-1
180
0
...
...
scripts/view14/.DAWN_1.history
View file @
359a1539
1.34392e+07
0.0
72.5
189.5
0
...
...
scripts/view15/.DAWN_1.history
View file @
359a1539
1.34392e+07
0.0
72.5
189.5
0
...
...
views/view12.yml
View file @
359a1539
...
...
@@ -5,11 +5,13 @@ dawn_view_12:detector:
view_12
:
stage
:
test
image
:
eicweb.phy.anl.gov:4567/eic/detectors/topside/imagemagick:latest
rules
:
-
if
:
'
$CI_SERVER_HOST
==
"eicweb.phy.anl.gov"'
needs
:
-
[
"
dawn_view_12:detector"
]
script
:
-
convert -delay 100 -loop 0 images/view12a*.png images/view12a.gif
-
ls -lrth *
-
ls -lrth images/*
views/view14.yml
View file @
359a1539
...
...
@@ -5,11 +5,13 @@ dawn_view_14:detector:
view_14
:
stage
:
test
image
:
eicweb.phy.anl.gov:4567/eic/detectors/topside/imagemagick:latest
rules
:
-
if
:
'
$CI_SERVER_HOST
==
"eicweb.phy.anl.gov"'
needs
:
-
[
"
dawn_view_14:detector"
]
script
:
-
convert -delay 100 -loop 0 images/view14a*.png images/view14a.gif
-
ls -lrth *
-
ls -lrth images/*
views/view15.yml
View file @
359a1539
...
...
@@ -5,11 +5,13 @@ dawn_view_15:detector:
view_15
:
stage
:
test
image
:
eicweb.phy.anl.gov:4567/eic/detectors/topside/imagemagick:latest
rules
:
-
if
:
'
$CI_SERVER_HOST
==
"eicweb.phy.anl.gov"'
needs
:
-
[
"
dawn_view_15:detector"
]
script
:
-
convert -delay 100 -loop 0 images/view15a*.png images/view15a.gif
-
ls -lrth *
-
ls -lrth images/*
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment