Skip to content
Prev 28439 / 29559 Next

Create pixels neighborhood in a raster

Hi,

Thanks for updating the example - it is much easier.  I'm still not
sure of exactly what you are after, but my day is young and there is
still coffee to be had.

One thing I suggest is that you modify your computation of cells.  As
you have it, you are computing a matrix of x and y locations.
But I really think you want to compute the cell numbers (1,2,3,...
left-to-right, top-to-bottom) from your original data locations (your
geo.form). Also, if I have followed correctly, I think you are looking
for a list of occupied cells regardless of how many ants in each cell.
Then I get a series of plots that "look" right to me with little
squares across the plot.

Cheers,
Ben
On Mon, Nov 9, 2020 at 7:48 PM ASANTOS <alexandresantosbr at yahoo.com.br> wrote: