Transform geographic to discrete coordinates
J are the row and column subscripts of the
raster cells (or image pixels)
J refer to the nearest sample point
lat— Latitude coordinates
Latitude coordinates, specified as a numeric array.
I— Longitude indices
J— Latitude indices