Skip to main content

Questions tagged [python]

Python is a high-level interpreted general programming language. Python has popular numerical and scientific libraries/packages, most notably numpy and scipy. The scipy.signal package is a powerful signal processing software collection. This tag covers the use of numpy, scipy, and other Python packages often used for SP computations.

Filter by
Sorted by
Tagged with
0 votes
2 answers
50 views

My understanding is super basic, but as I understand it, the FFT takes in data in the time domain (amplitude over time) and returns complex data in the frequency domain (magnitude over frequency). ...
Decker's user avatar
  • 1
1 vote
0 answers
36 views

Currently I am trying to use griffin lim algorithm to generate waveform data from magnitude spectrogram input. In general everything works fine. However, I do not fully understand the effect of ...
Matthias La's user avatar
1 vote
1 answer
91 views

I am new to DSP, and I am currently working on a project whose full details I cannot disclose yet. Broadly speaking, the goal is to study the relationship between EEG signals and musical structure ...
enrique diaz blanco's user avatar
3 votes
1 answer
100 views

I am analyzing EEG data (CHB-MIT Scalp EEG) and generating spectrograms to visualize seizure transitions. I am trying to understand specific artifacts visible in my output to ensure my preprocessing ...
Lasedfyh's user avatar
0 votes
1 answer
56 views

I'm trying to replicate MATLAB's imresize behavior in Python using skimage.transform.resize. Here's my test case: Python ...
Researcher's user avatar
0 votes
0 answers
89 views

I'm trying to set up simultaneous RX and TX using the two front-ends on a USRP B210 using the UHD Python API. This resource recommends using separate threads for RX and TX, and this one says that UHD ...
Cosinux's user avatar
  • 143
0 votes
0 answers
34 views

I'm new to digital signal processing and would like to know how to make a QAM-M modem that generates proper passband signal and saves it as a WAV file. The tool should allow me to specify the carrier ...
MDdiamond's user avatar
1 vote
0 answers
159 views

I'm working on human pose estimation using MediaPipe (Pose or Face Mesh), which applies a LandmarkSmoothing filter (One-Euro style) to stabilize landmarks in real-time. However, for offline post-...
28.Lê Trung Hiếu's user avatar
0 votes
1 answer
247 views

I’m working on a machine learning project where I need to classify very short audio clips (about 4 seconds each) into two categories: repeating song: clips that contain a repeating musical pattern. ...
Geoffrey R.'s user avatar
0 votes
0 answers
71 views

I'll try and detail as much as possible, please ask me if any info is missing in your opinions. in this assigment i created the basic rect signal a[n] such that over the domain [-1000,1000] it's 1 ...
Nate3384's user avatar
  • 141
0 votes
0 answers
71 views

apologies for what is maybe a silly newbie question, but my problem is I have a real-time feed of audio tones from a detector, and I want to classify them into maybe 3 or 4 buckets, eg not interested, ...
Mark Warren's user avatar
3 votes
2 answers
234 views

I am a beginner in FFT and, however, for my project, I have to process the autocovariance function and turn it into a spectral density. I am using Python for the calculations. If I center the ...
aerospace's user avatar
  • 131
2 votes
1 answer
117 views

I am trying to implement the research paper linked here: Converted Measurements Random Matrix Approach to Extended Target Tracking Using X-band Marine Radar Data I’ve managed to code the prediction ...
hwhorf's user avatar
  • 21
0 votes
0 answers
28 views

I'm trying to apply Rayleigh fading (Jakes' model) to a wideband signal consisting of multiple subbands. The overall signal has a bandwidth of 250MHz, sampled at 500 MHz with a total signal length of ...
Student-qeùtf's user avatar
0 votes
0 answers
76 views

I am using python to play around with my own implementation of the ACF. I am aware of how the autocorrelation function can have quantization error due to integer values of lag being used to calculate ...
Rahul Singh's user avatar
1 vote
0 answers
93 views

Some introductory remarks I'm playing with a real-world harmonic oscillator (a torsion pendulum) of the form $$ M\ddot x(t) + M\Gamma\dot x(t) + \frac{K}{M}x(t) = F_{\mathrm d}\cos(\omega_{\mathrm d}t)...
GeometriaDifferenziale's user avatar
1 vote
0 answers
72 views

I'm simulating a 2D Ornstein-Uhlenbeck process (Langevin equation for velocity), and I'm interested in computing the power spectral density (PSD) of the vector-valued velocity process. Following the ...
alpelito7's user avatar
  • 111
0 votes
0 answers
55 views

I have the discrete window signal $a\left[n\right]=\begin{cases}1 & \left|n\right|<100\\0 & 100\leq\left|n\right|\leq1000\end{cases}$ with the respective Fourier coefficients $a_k=\frac{\...
Nate3384's user avatar
  • 141
1 vote
0 answers
74 views

I'm trying to solve a computer vision problem where I need to determine whether a black-and-white image exhibits a certain "zebra-like" vertical striping pattern. What I mean by "zebra-...
artas2357's user avatar
  • 111
0 votes
0 answers
149 views

I have a raw IQ file capture with rtl_sdr -f 1090000000 -s 2000000. I want to get the ADS-B message from it. I understand the basic of I and Q value, I normalize it ...
Brian MJ's user avatar
0 votes
1 answer
109 views

I have wrote a general python code in Sage-math to find out the Fourier transform of the addition of two different frequency cosine wave in order to plot the frequency domain in a graph. The function: ...
AL-zami's user avatar
  • 109
4 votes
5 answers
2k views

I am currently in the midst of processing a satellite image, and I've come to a point where I need to remove those faint stripes caused by the sensor, as you can see below: The image is RGB. I ...
stbr2's user avatar
  • 49
0 votes
1 answer
122 views

from an assignment in signal processing in Python. It's all done in Python (through Google Colab) with the libraries cmath, numpy, and matplotlib alone. Signal a is a window signal where $a\left[n\...
Nate3384's user avatar
  • 141
0 votes
1 answer
74 views

I'm looking for a simple digital FIR signal filtering method that is quicker to respond to increases in the signal, but slower to react to decreases in the signal. I've used scipy for several signal ...
Nick the data guy's user avatar
0 votes
0 answers
58 views

from an assigment in python about mostly the connection between a signal and its Fourier coefficients, im asked to plot the wave that stems from $b_{k=10}$ in my case it's suposed to be $b_{10}\cdot e^...
Nate3384's user avatar
  • 141
0 votes
0 answers
46 views

can someone help me understand what I'm doing wrong here? (using python only with cmath, numpy and matplotlib) I received a simple "window" signal (called a[n]) which I transformed into the ...
Nate3384's user avatar
  • 141
0 votes
2 answers
118 views

I am doing a very basic Gabor orientation prediction for images. It works perfectly on downsampled image samples. Part of the problem might be because in the actual testing image, I can have negative ...
raisa_'s user avatar
  • 123
2 votes
1 answer
212 views

I have the output of numpy.fft.fft, calculated with 15000 samples at a rate of 500Hz - giving me bins of size $\frac{1}{30}$. Rather than having 15000 samples, I'd rather have say, 50 or 100. I've ...
Brokndremes's user avatar
1 vote
1 answer
93 views

i have easily implemented sinusoidal response of lti system using matlab, here is my code : ...
dato datuashvili's user avatar
1 vote
1 answer
129 views

I have a PPG data series and I have extracted the R-R peaks with 100Hz frequency. Here is a synthetic signal and the estimate the peaks using Neurokit: ...
AL B's user avatar
  • 153
2 votes
0 answers
76 views

I have a degree in Computer Science. Project Overview My main challenge is counting small black dots, which are Aedes mosquito eggs. These eggs are deposited on an Aucatex panel, a material placed in ...
William Cardoso's user avatar
0 votes
1 answer
143 views

I have obtained a graph from a pressure sensor connected to an oscilloscope. As you can see, there is a lot of noise. I want to remove the noise from this obtained graph to clearly see the peak that I ...
Syed Nasif Zaman's user avatar
0 votes
0 answers
168 views

My goal is to end up with a text file of analogue frequency values that can then be used to playback the song. The frequency values can be used with a physical oscillator to transmit them over AM ...
Mattia Candotti's user avatar
2 votes
1 answer
841 views

I am curious to how others would approach leveraging the Raspberry Pi Picos(RP2040&RP2350) PIO state machine(ASM) to generate, analyze, process and transmit audio signals. A few basic ideas I ...
Qubitnik Technology's user avatar
0 votes
0 answers
90 views

I have an interferogram that has a sort of Gaussian "pulse" envelope. The centre of the pulse (or the max point) is not necessarily the centre of my vector. I want to window the time domain ...
Spectroscopist1812's user avatar
0 votes
1 answer
88 views

I'm supposed to use morphological transformations to do this but couldn't come to any solution, any ideas other than brute forcing (python)?
mst_adr's user avatar
2 votes
0 answers
64 views

I am currently investigating propeller noise at relatively stable RPM as part of my research internship. The target RPM is maintained within a band of ±25 RPM, with fluctuations during the ...
lexzell's user avatar
  • 21
2 votes
2 answers
67 views

I have three vectors, the first one is $x$ which is of relatively long length, and two kernels $k_1$ and $k_2$ with $\text{len}(k_1) < \text{len}(k_2)$. If I perform full mode convolution (like in ...
Algo's user avatar
  • 33
4 votes
0 answers
253 views

Summary The question is how a signal can be decimated by a non-integer decimation factor when it is sampled at irregularly spaced x-points its local noise variance is a function of the x-coordinate (=...
MothNik's user avatar
  • 93
0 votes
2 answers
131 views

I'm working with an example signal x = [4, 3, 5, 10, 5, 3]. In fftshift land, this is an even signal, because the indices ...
Pavel Komarov's user avatar
1 vote
1 answer
205 views

Image processing: I'm looking for an interpolation/fill function that takes as an input a mostly black image with some scattered color shapes (pic 1). The function should fill all black pixels based ...
MrSparkly's user avatar
  • 111
1 vote
0 answers
86 views

I am trying to find all the locations of a drum clip in a piece of audio. This drum clip is a digital sample that is repeated at intervals. I have had reasonable success at removing the clip ...
Baz's user avatar
  • 294
2 votes
0 answers
82 views

Outline I have some Raman spectroscopy data that contains features that I want to remove. I'll point them out in the figure below: Here you can see two sets of peaks that I am interested in, with the ...
AlexP's user avatar
  • 121
1 vote
1 answer
443 views

I already posted my question on the Physics StackExchange and was told to come and ask the question here. I have 3D motion tracking data of people, that I am using for my thesis. I am trying to find ...
RomainP's user avatar
  • 111
3 votes
1 answer
256 views

Summary I'm trying to extrapolate a signal $\mathbf{y}$ sampled at equidistant time points from $-T$ to $T$. From the given experimental conditions, I know that the Fourier Transform of the $\mathbf{y}...
MothNik's user avatar
  • 93
2 votes
1 answer
251 views

I am trying to perform empirical mode decomposition of two-dimensional positional data using the python code given in : MEMD python. I have two time series data for x- and y- component of position. ...
sig_codex's user avatar
0 votes
1 answer
119 views

I've got a signal with known shape (from Oppenheim and Willsky problem 3.22a.(b)). I solve for the Fourier coefficients analytically and am happy with their values, given by. $$ a_0 = 1/2 $$ $$a_k = \...
Pavel Komarov's user avatar
0 votes
1 answer
116 views

I´m trying to simulate digital signals using numpy and scipy. When trying to lowpass filter a signal of the sines the result appears to amplify the region between the frequency spikes above the level ...
Johan's user avatar
  • 1
1 vote
1 answer
149 views

I am currently trying to measure the FFT of the measured signals (shown below) at the input of my device. I am currently following the method detailed in this article, and wrote the following code to ...
Kali's user avatar
  • 13

1
2 3 4 5
28