RAnEnExtra::pixelsToY convert the pixel index to its y coordinate counting row-wise. The start matters because it sets the offset. The returned numbers are counted from 1.

pixelsToY(pixels, xgrids.total, start)

Arguments

pixels

a vector of indices of pixels that will get divided

xgrids.total

total number of x.

start

the counting start of pixels.

Value

y coordinate(s)