pixelsFromXs: RAnEnExtra::pixelsFromXs

Description Usage Arguments Details Value

View source: R/pixelsFromXs.R

Description

RAnEnExtra::pixelsFromXs convert x and y to pixel index

Usage

1
pixelsFromXs(x, y, xgrids.total, start)

Arguments

x

a vector of x coordinates of the pixels starting from 1

y

a vector of y coordinates of the pixels starting from 1

xgrids.total

total number of x.

start

the counting start of pixels.

Details

convert x and y coordinates index to pixels index. Assume that x and y coordinates index are counting from 1. Pixels start counting from the argument start, and they are counted row-wise.

Value

the index of the pixel


Weiming-Hu/RAnEnExtra documentation built on Sept. 26, 2021, 6:44 a.m.