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)
| pixels | a vector of indices of pixels that will get divided |
|---|---|
| xgrids.total | total number of x. |
| start | the counting start of pixels. |
y coordinate(s)