Page 1 of 1
trick to rotate the beam distribution?
Posted: 20 Aug 2019, 17:09
by gpark
I have a beam distribution in .sdds file. And I want to let this beam go through my lattice. But the distribution is 90 degree rotated relative to my complicated lattice setting and want to rotate the entire beam distribution by 90 (say, clockwise). Can I do it using sddsprocess? If so, how can I do it?
Thanks,
Gunn Tae
Re: trick to rotate the beam distribution?
Posted: 01 Oct 2019, 18:58
by michael_borland
Gunn Tae,
You can do this in elegant itself, by inserting a ROTATE element at the start of the beamline:
R1: ROTATE,TILT="pi 2 /"
If you want to do it externally, you can use sddsprocess:
Code: Select all
sddsprocess input.sdds inputRotated.sdds -define=col,y0,y -define=col,yp0,yp \
-redefine=col,y,x,units=m -redefine=col,yp,xp \
"-redefine=col,x,y chs,units=m" "-redefine=col,xp,yp chs"
--Michael