sddsshift string columns

Moderators: cyao, michael_borland

Post Reply
petrenko
Posts: 43
Joined: 09 Jun 2008, 02:53
Contact:

sddsshift string columns

Post by petrenko » 15 Sep 2008, 09:16

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.

michael_borland
Posts: 1800
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: sddsshift string columns

Post by michael_borland » 15 Sep 2008, 14:39

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

petrenko
Posts: 43
Joined: 09 Jun 2008, 02:53
Contact:

Re: sddsshift string columns

Post by petrenko » 16 Sep 2008, 02:25

Thanks! I'll use this solution.
Before I had to shift all the numeric columns instead of ElementName.

Post Reply