Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all articles
Browse latest Browse all 2936

Decimation (downsampling) of ASCII (txt) input files

$
0
0

Hi everybody,

 

although I looked a little in past questions, I don't seem to find anything suitable.  I am confronted with the problem of reducing the sampling rate of a set of files, if possible with a variable reduction factor. For example setting reduction := 60 I would then have a value every minute, instead of a value every second, and so on. All my attempts are baffled by error: "insufficient memory for the required operation".

 

I built an example with a limited amount of data, in order to show what I am trying to do. But the real files that I have got can reach 1.5 Millions of lines. They are also not readable with Excel.

 

Moreover, the procedure seems to me very slow.  There has to be a better approach, but at the moment I cannot see it.

 

Thanks a lot in advance for any hint!

 

Regards

Claudio

 

PS: a small collateral question would be if there is some easy Mathcad-way to convert the time stamp "hh:mm:ss" in a normal number (like for example seconds from midnight or so).


Viewing all articles
Browse latest Browse all 2936

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>