bug in the fun_analog argument of the Analogs function
Hi @jramon,
For the Analogs function of the CSDownscale library, I think there is a bug in the fun_analog argument. When the user assigns "min" or "max" to the fun_analog argument, the function selects the minimum or maximum value among the k neighbour as the output, instead of selecting the closest or the farthest neighbour.
Fyi
Eren