sddsplot error

Moderators: cyao, soliday

Post Reply
jtobin
Posts: 47
Joined: 23 Jul 2008, 15:00

sddsplot error

Post by jtobin » 01 Jun 2012, 11:16

Dear all,
My colleague uses a Linux computer and gave me a sddsfile from elegant to be used as an input file in my elegant program (PC cygwin). When I do a sddsquery, thinks looks fine. But when I fire a sddsplot command, I get the following error
sddsplot filename -col=t,x results in
warning:problem reading data from file filename
Unable to read page -- couldn't read parameters <SDDS_ReadAsciiPage>
Unable to read page -- parameter scanning error <SDDS_ReadAsciiParameters>
Unable to scan data -- scanning or allocation error <SDDS_ScanData>
error:no datasets to plot

when we tested the same command in Linux, it works fine. Is there some compatibility issue and if so , how can we overcome this? thanks for support.

regards,
Charles

soliday
Posts: 391
Joined: 28 May 2008, 09:15

Re: sddsplot error

Post by soliday » 01 Jun 2012, 11:37

Can you send me the file to examine? soliday@aps.anl.gov

soliday
Posts: 391
Joined: 28 May 2008, 09:15

Re: sddsplot error

Post by soliday » 01 Jun 2012, 12:19

You found a bug. Our SDDS code on Windows is not reading the NaN value right and that is causing the problem. In your case you could first filter the file on linux with the command sddsconvert filename.sdds -delete=parameter,Charge before trying to plot it on Windows. The other option is to make sure that the value of Charge is not NaN but an actual number.

I'll fix this for the next release.

jtobin
Posts: 47
Joined: 23 Jul 2008, 15:00

Re: sddsplot error

Post by jtobin » 01 Jun 2012, 14:29

Dear Soliday,
I did what you said and now it is working perfectly. I am glad that my question was a useful one for the community. Thanks!
regards,
Charles

Post Reply