Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cf/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4407,7 +4407,9 @@ def arctan2(cls, x1, x2):
x2: array_like
X coordinates. *x1* and *x2* must be broadcastable to
a common shape (which becomes the shape of the
output).
output). If both *x1* and *x2* have units, they must
be in the same dimension (can be conformed), else
they will be treated as unitless.

:Returns:

Expand All @@ -4434,6 +4436,10 @@ def arctan2(cls, x1, x2):
[90.0 -90.0]

"""

if isinstance(getattr(x2, "Units", None), Units):
x1 = conform_units(x1, x2.Units)

try:
y = x1.to_dask_array()
except AttributeError:
Expand Down
Loading