Generating SDDS files with PERL
Posted: 06 Aug 2008, 08:38
Hi,
I am writing a simple script in PERL that takes the output of another program and adds the appropriate SDDS header so I can use all the functionality of the SDDS Toolkit. At first the script seems to be working. An output file is created which Windows recognizes as having an .sdds extension and a quick "sddscheck" turns out ok. However, when I try to use sddsplot (for example) I see no data. I can solve the problem by opening the file with a text editor and saving as an .sdds file. (I am asked if I want to overwrite the previous file which I do). By doing this, I can use sddsplot. While this is a fairly straightforward fix, the point of the script is to make this conversion on many files and I'd rather not have to open each file and "save as".
Any help would be greatly appreciated!
--chris
I am writing a simple script in PERL that takes the output of another program and adds the appropriate SDDS header so I can use all the functionality of the SDDS Toolkit. At first the script seems to be working. An output file is created which Windows recognizes as having an .sdds extension and a quick "sddscheck" turns out ok. However, when I try to use sddsplot (for example) I see no data. I can solve the problem by opening the file with a text editor and saving as an .sdds file. (I am asked if I want to overwrite the previous file which I do). By doing this, I can use sddsplot. While this is a fairly straightforward fix, the point of the script is to make this conversion on many files and I'd rather not have to open each file and "save as".
Any help would be greatly appreciated!
--chris