You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Philippe,
I just tried to use your code for spherical data interpolation and it worked very well! While I was trying to figure out which coordinate system is being used, it occured to me that the range of your altitude angle is between [-90,90]. However, in your __polar_to_cartesianfunction, you use z = r * np.cos(lat)
that means, the z-coordinate is always positive? I'm not sure if this will affect the result.
Thank you very much!
The text was updated successfully, but these errors were encountered:
I think Ziye is right.
The __polar_to_Cartesian function calculates from spherical to cartesian coordinates, but you use longitude and latitude, where latitude has an offset of np.pi/2 to the polar angle. This means also the x and y values are not correct.
Hi Philippe,
I just tried to use your code for spherical data interpolation and it worked very well! While I was trying to figure out which coordinate system is being used, it occured to me that the range of your altitude angle is between [-90,90]. However, in your
__polar_to_cartesian
function, you usez = r * np.cos(lat)
that means, the z-coordinate is always positive? I'm not sure if this will affect the result.
Thank you very much!
The text was updated successfully, but these errors were encountered: