RAnEnExtra::pixelsToX convert the pixel index to its x coordinate counting row-wise. The start matters because it sets the offset. The returned numbers are counted from 1.
pixelsToX(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. |
x coordinate(s)