Rasters.jl icon indicating copy to clipboard operation
Rasters.jl copied to clipboard

`zonal` can't handle mixed type function output

Open rafaqz opened this issue 7 months ago • 3 comments

We need more sophisticated type promotion.

rafaqz avatar Apr 22 '25 14:04 rafaqz

yeah, maybe some introspection on the Julia end as well?

A call to identity.(vec) always worked for me, otherwise :D but it would be slower for known output types

asinghvi17 avatar Apr 22 '25 15:04 asinghvi17

We could do what map does and promote as we go, it's just complicated.

Or use Base.return_type

rafaqz avatar Apr 22 '25 17:04 rafaqz

We'll have to do it at some point, I guess

asinghvi17 avatar Apr 22 '25 17:04 asinghvi17