Tag Archives: numpy

Python filter array based on multiple masks

I used this in my fft transformed data to filter some wavelengths.

mask = [all(tup) for tup in zip(fftFreq>=32,fftFreq<=45)]

fftData[mask] then will output the filtered results.

Advertisements