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
{{ message }}
Repository navigation
Use Vectorized Coordinate Conversion Everywhere #790
#730
sounds good to me regarding the code-base changes. Actually, not only Hongyu's helpers, but I believe we should aim to change all of such calls to vectorized calls for optimization purposes, and I think if it is too much for this PR, it can be ?handled as part of Rachel's optimization efforts.
Agreed, the following modules are the ones I was able to find that still call these functions iteratively.
Zonal average helper functions (integrate.py)
Face area helper functions (area.py)
Arc helper functions (arc.py)
The same applies to test case changes; I think we need to address them either as part of this PR or create an issue for that and deal with it soon. BTW, the changes would even help with the tests' execution times in our CI action runs, right? I also think the changes should be straightforward to still keep testing for arrays rather than scalars, similar to what you did here, right?
I can make changes to the test cases where appropriate. It should be a simple fix.
Activity
[-]Used Vectorized Coordinate Conversion Everywhere [/-][+]Use Vectorized Coordinate Conversion Everywhere [/+]cmdupuis3 commentedon Nov 18, 2026
This issue is either done or superceded in practice:
_lonlat_rad_to_xyzis fixed_xyz_to_lonlat_radis fixed across Optimized Geometry Functions using Numba #1072, Robust implementation of_point_within_gca_cartesianusing only Cartesian coordinates #1112, and Optimize Zonal Weights, Cartesian Extreme Lat #1130._normalize_xyz_scalarcould still be optimized but it's compiled in Numba