python


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.

Related Links

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

Categories

HOME
sql-server
cntk
pug
signalr
angular-cli
voip
bing
google-tag-manager
json-ld
safari
vlc
wampserver
dataframe
requirejs
wicket
x11
gatsby
simple-injector
alfresco-share
kadanes-algorithm
dspic
rworldmap
cronet
katharsis
lync-2013
i3
hana-studio
postgresql-9.2
read-write
npm-shrinkwrap
hashcat
openshift-enterprise
haskell-pipes
restful-url
flex4.5
finite-element-analysis
dojox.grid.datagrid
lirc
gauss
cgcontext
decompress
struts-layout
crystal-reports-8.5
search-box
python-hypothesis
adler32
shinyjs
onresume
rsqlite
libtiff.net
slam-algorithm
boost-hana
com-interop
elastix
direct3d12
jenkins-scriptler
application-loader
vips
lmfit
selendroid
rad
fabric-twitter
ffserver
pgm
gulp-livereload
ctrlp
obfuscar
cg
em
mov
code-testing
io.js
late-static-binding
visual-studio-addins
magicalrecord-2.2
sslexception
robospice
visual-studio-2003
ienumerator
qtgui
fileconveyor
vertical-scrolling
git-filter-branch
maven-ear-plugin
fotoware
windows-phone-7-emulator
driving-directions
qtembedded
server-error
external-assemblies
multibyte-functions
rd

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App