ComputationalRadiationPhysics / clara2

Clara2 - a parallel classical radiation calculator based on Liénard-Wiechert potentials
GNU General Public License v3.0
13 stars 9 forks source link

NaN in spectrum #33

Closed PrometheusPi closed 7 years ago

PrometheusPi commented 8 years ago

There can be NaN value in the spectrum, which destroy the total result of used with process_data.

I suspect they come from the Nyquist limit which is avoided in the interpolation. They should be set to zero.

PrometheusPi commented 8 years ago

I think the error occures in the interpolation here where there might be a division by zero if we are above the Nyquist limit. Test is currently running.

PrometheusPi commented 7 years ago

fixes with #44