Apologies if this question might sound trivial for some of you. I have the following situation:
There is a twiss file with several columns, "s", "betax", "betay", "ElementType" etc
I first extract the lines of the file that correspon to quadrupole values, and it works. I do (in an elegant file)
Code: Select all
&subprocess
command = "sddsprocess run0_test.twi jan18.betaxTerms -match=col,ElementType=KQUAD "
&end
Code: Select all
&subprocess
command = "sddsprocess run0_test.twi jan18.betaxTerms -match=col,ElementType=KQUAD,ElementType= KSEXT, | "
&end
PS: i am extracting the KQUAD and KSEXT values to have more point for the KQUAD optimization.