07-16-2007 09:54 AM
07-16-2007 10:09 AM
07-16-2007 10:21 AM
07-16-2007 10:35 AM
07-16-2007 10:58 AM
@smercurio_fc wrote:
However, curiously enough, if you incorporate compression, it turns out that saving it as text may end up being better in terms of file size.
This probably depends a lot on the format you are using. Formatted numbers typically have less information that contained in the original binary so I would expect the compressed size to be smaller. 😉 From your numbers, it seems that your text format takes a biit over 10bytes/number, not even enough to retain the ~15 decimal digit resulution of the DBL. You even waste ~1MB on sperators and decimal points each. If you use scientific format, there won't be much left for the mantissa. 😉 Your compressed text file size is smaller because it contains significantly less data to begin with. 🙂
Back to the original question:
So, what kind of data is this? For example if this is audio data, maybe a lossy compression such as mp3 would be acceptable?
What is the resolution of your DAQ system (12bit, 16bit)? You definitely don't ned to waste more bits/sample than that in the file?
07-16-2007 11:13 AM
07-16-2007 11:23 AM
@nistudent wrote:
basically I need the values to 3dp. and they never go over 1000. ie the biggest number i will ever need is say 1000.999
Are the numbers always positive? what is the smallest number? We need to know the range!
The best format will differ if a smallest number is -10000.999 or 10000.100, right?
So we know you only need a step size of 0.001. How many different values can your data have?
07-16-2007 11:27 AM
sorry,
the range is -1000.999 - 1000.000 as is a sinusoidal signal.
the resolution is 0.001, do you need anything else?
07-16-2007 11:37 AM
07-16-2007 11:43 AM