Splitting a 1-d numpy array from tdms file, and plot shorter time series/intervalls from the original array
Need help to pull out a spesific intervall from a 1-d numpy array from a tdms file. Im able to plot the file but are unable to spesify the sample intervall that I want to plot. As you can see on the picture I want to plot the intervall that is in green. The amount of samles are about 35000, it is 1000 samples a second and I want to split it into 3 and plot the green areas. Lets say I want to plot the intervall [6000, to 13000] and so on. This is taken from a colum of an tdms file. I can use the numpy.split but I dont want to split into many parts and then have to put those arrays together again. To get my wanted areas of plotting/ finding averge of.
You should be able to use the array-subset function, give it your array, an index, and length and you will get your sub-array.
Did you try using Python array slicing? To plot an array from element 6000 to 13000 you can use the following: a[6000:13000] Note that the element with index 13000 will be excluded.
Detect Changes to Environment Variables
Select all by type: Geometry. Equivalent Python script?
Sorting algorithm doesn't work
How to avoid “Name 're' is not defined” error while connecting pycharm remote debugger?
Python - Generate binary list with itertools
Capture domain and path from URL with regex
Pylab animation multiple figures
Django Password Reset Email Error 10060
Excel delimited file
Why is scrapy dumping thousands of `ERROR` log messages without any description of the error?
Python 2.5.4: how to find sum of logarithm values
Posting a json data in url — Python
How to Covert to dictionary in Python
Python __getitem__ error
How do I use the 'json' module to read in one JSON object at a time?
Error handling with verbose output