Hello,
I have a plain data file (generated from my own C program with .dat format) which consists of 6 columns separated by spaces for the phase space data of many particles (column wise: x px y py t dp/p). I want to run elegant using SDDS_BEAM command. For this I tried to convert this plain data file (3000 particles) using SDDS conversion utility with following command:
csv2sdds initial_temp.dat initial_temp.sdds -columnData=name=x,type=double,unit=m -columnData=name=xp,type=double -columnData=name=y,type=double,unit=m -columnData=name=yp,type=double -columnData=name=t,type=double,unit=s -columnData=name=p,type=double,unit=m$be$nc -maxRows=2999 -separator=" "
But this conversion is not correct. I could found a message like this (in any editor):
"initial_temp.sdds" [Incomplete last line][converted] 219 lines, 249153 characters
Please let me know where I am doing wrong?
Thanks and regards,
Amal.
SDDS file conversion
Moderators: cyao, michael_borland
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: SDDS file conversion
Amal,
I don't see an obvious problem with the command. Can you post the input file?
--Michael
I don't see an obvious problem with the command. Can you post the input file?
--Michael
Re: SDDS file conversion
Michael !!
Here is the attached file of data......
Regards,
Amal.
Here is the attached file of data......
Regards,
Amal.
- Attachments
-
- initial_temp.tar
- (240 KiB) Downloaded 2665 times
Re: SDDS file conversion
Try this:
plaindata2sdds initial_temp.dat initial_temp.sdds -column=x,double,unit=m -column=xp,double -column=y,double,unit=m -column=yp,double -column=t,double,unit=s -column=p,double,unit=m -noRowCount
I don't think the csv2sdds program works well with variable length whitespace.
plaindata2sdds initial_temp.dat initial_temp.sdds -column=x,double,unit=m -column=xp,double -column=y,double,unit=m -column=yp,double -column=t,double,unit=s -column=p,double,unit=m -noRowCount
I don't think the csv2sdds program works well with variable length whitespace.
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: SDDS file conversion
Amal,
Bob is correct. The problem is that csv2sdds is kind of restrictive in the format. Using plaindata2sdds worked for me.
--Michael
Bob is correct. The problem is that csv2sdds is kind of restrictive in the format. Using plaindata2sdds worked for me.
--Michael
Re: SDDS file conversion
Thanks Bob & Michael......It worked nicely.......
Regards,
Amal.
Regards,
Amal.