KCollins / magplots

A python library to pull data and make plots from ground magnetometers. Emphasis on plots for comparing magnetometers at conjugate points.
MIT License
0 stars 1 forks source link

change nperseg argument to match len(y) #2

Open aidanmontare-fed opened 2 months ago

aidanmontare-fed commented 2 months ago

removes UserWarning from scipy that says nperseg should not be greater than input length

aidanmontare-fed commented 2 months ago

Seems to change the output of magspec plots

aidanmontare-fed commented 2 months ago
python3.12/site-packages/scipy/signal/_spectral_py.py:1240: UserWarning: nperseg = 1800 is greater than input length  = 1441, using nperseg = 1441
  freqs, time, Zxx = _spectral_helper(x, x, fs, window, nperseg, noverlap,