pass coordinates to ufunc #5602
Unanswered
espiritocz
asked this question in
General
Replies: 1 comment
-
Please check out the "discussion norms", including providing a reproducible example |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi,
i have a=xr.DataArray with lon,lat,time coordinates.
the only thing i want to do is apply function per each lon,lat.
i know this should be rather simple, but got stuck in it..
i.e.
def func(lat = 15.1, lon = 30.3, time = [Timestamp('2014-11-05 11:26:38'), Timestamp('2014-11-29 11:26:38']):
return [1, 2]
and i want to:
xr.apply_ufunc(func, a.lat, a.lon)
thank you in advance..
Beta Was this translation helpful? Give feedback.
All reactions