Could you enable sddsshift to work with string columns?
For example, if I want to get Twiss parameters at the beginnings of all the elements it would simply take:
sddsshift twiss.sdds -pipe=out -col=ElementType -shift=1 | ...
Cyclic shift would be useful as well. But this probably is not so easy to implement.
Thanks.
Alexey.
sddsshift string columns
Moderators: cyao, michael_borland
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: sddsshift string columns
Thanks for the suggestion. We'll try to get it into the next release.
Meanwhile, you can do this:
sddsconvert input.twi output1.twi -delete=col,Element*
sddsprocess input.twi -pipe=out -clip=1,0 -retain=col,Element* \
| sddsxref -pipe=in output1.twi output.twi -take=*
--Michael
Meanwhile, you can do this:
sddsconvert input.twi output1.twi -delete=col,Element*
sddsprocess input.twi -pipe=out -clip=1,0 -retain=col,Element* \
| sddsxref -pipe=in output1.twi output.twi -take=*
--Michael
Re: sddsshift string columns
Thanks! I'll use this solution.
Before I had to shift all the numeric columns instead of ElementName.
Before I had to shift all the numeric columns instead of ElementName.