das-developers / das2java

The original das2 library. Provides interactive publication-ready 2-D plotting
https://das2.org
GNU Lesser General Public License v3.0
4 stars 0 forks source link

FFTPower miscalculation when data cadence changes and rank 1 waveform is used #48

Closed jbfaden closed 1 year ago

jbfaden commented 1 year ago

Keith nicely isolated a case with Cluster WBD data where a change in the data cadence results in inconsistent results, as if a constant cadence throughout the operation is assumed.

jbfaden commented 1 year ago

I've removed all the 10x cadence parts used when calculating cadence. It's confusing to have any variable where 10x cadence is stored, just store the cadence, even if there is an unnecessary division.

jbfaden commented 1 year ago

The code is correct now. The problem was that I'd broken the code which would detect where translation was changing over time.

jbfaden commented 1 year ago

image