Page 1 of 1

sddsshift string columns

Posted: 15 Sep 2008, 09:16
by petrenko
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.

Re: sddsshift string columns

Posted: 15 Sep 2008, 14:39
by michael_borland
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

Re: sddsshift string columns

Posted: 16 Sep 2008, 02:25
by petrenko
Thanks! I'll use this solution.
Before I had to shift all the numeric columns instead of ElementName.