SDDS Question

Moderators: cyao, michael_borland

Post Reply
tennant
Posts: 85
Joined: 31 Jul 2008, 07:19
Location: Jefferson Laboratory

SDDS Question

Post by tennant » 22 Aug 2012, 07:40

Hi,

I have two particle distributions in the form of SDDS files, say A.sdds and B.sdds. I'd like to create an entirely new distribution by combining the transverse coordinates of A.sdds (x,x',y,y') and the longitudinal coordinates of B.sdds (t,p). Is there a straightforward way to do that. I was unable to use sddsxref or sddscombine to achieve this.

Thanks in advance for the help,
chris

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

Re: SDDS Question

Post by michael_borland » 29 Aug 2012, 07:54

Chris,

Here's how you can do this:

sddsconvert A.sdds -pipe=out -delete=col,t,p | sddsxref -pipe=in B.sdds new.sdds -take=t,p

--Michael

Post Reply