cut_resample flip XY coords during interpolation
Issue #304
resolved
In scalar_fields_XY.py, in the methode cut_resample
the argument of RectBivariateSpline
are swaped the x, and y, resulting in a wrong dimentions of U after the interpolation
should be
f_interp_abs = RectBivariateSpline(self.x,
self.y,
np.abs(self.u),
kx=kxu,
ky=kxu,
s=0)
f_interp_phase = RectBivariateSpline(self.x,
self.y,
np.angle(self.u),
kx=kxu,
ky=kxu,
s=0)
Comments (3)
-
reporter -
repo owner Dear Karim Gibrán Hernández Chahín.
Thank you very much for your suggestion. I have solved this bug in readme-change branch.
Luis MIguel
-
repo owner - changed status to resolved
Dear Karim Gibrán Hernández Chahín.
Thank you very much for your suggestion. I have solved this bug in readme-change branch.
Luis MIguel
- Log in to comment
I was using a special case, so I can see the need to use the swaped coors for the fitting function, however still the issue of the imaged with wrong dimentions of the output.
The solution ( I tested on different cases) is to change the coods on the formation on the new field