https://mingredbestcheapprice.blogspot.com/2024/03/how-to-apply-xarray-ufunction-over.html