cf-python icon indicating copy to clipboard operation
cf-python copied to clipboard

Implement hypot function

Open ThatDesert opened this issue 7 months ago • 2 comments

Implement the hypot function in a similar manner to the already-existing arctan2 function.

Can be used for calculating magnitudes of resultant vectors given components (e.g. wind speed).

ThatDesert avatar Aug 15 '25 15:08 ThatDesert

Good idea. Thanks again Ollie. You'd be welcome to put in a PR yourself, but if you don't have the time/bandwidth then we will eventually get it added as a directly-supported operation.

sadielbartholomew avatar Aug 26 '25 13:08 sadielbartholomew

Thanks, Ollie. Just to note that dask handily has a hypot method we can be used under the hood: https://docs.dask.org/en/stable/generated/dask.array.hypot.html

davidhassell avatar Aug 26 '25 15:08 davidhassell