SDDS file conversion
Posted: 10 Aug 2011, 12:42
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.
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.