Generating raster simulations

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Generating raster simulations

Steven K Friedman

Greetings,

I'm trying to find a function to generate a random landscape consisting of x
by y cells, allows a specification of number of classes and their
proportional abundance in the landscape.

Does R support such a function ?

Thanks in advance

Steve

Steve Friedman, Assistant Professor
Center for Global Change and Earth Observations
Michigan State University
East Lansing, Michigan 48824
Phone - 517 - 648 - 6290

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Generating raster simulations

Uwe Ligges
Steven K Friedman wrote:

> Greetings,
>
> I'm trying to find a function to generate a random landscape consisting of x
> by y cells, allows a specification of number of classes and their
> proportional abundance in the landscape.
>
> Does R support such a function ?

1. I do not know.

2. A look at the many packages on spatial statistics might reveal some
already existing packages.

3. Question: Can one cell contain more than one object (e.g. objects of
two different classes)? Ideas:
  - If "No": sample() and make a matrix
  - If "Yes": sample() a logical matrix in for each class and make an
array, if there are not too many classes.

Uwe Ligges


> Thanks in advance
>
> Steve
>
> Steve Friedman, Assistant Professor
> Center for Global Change and Earth Observations
> Michigan State University
> East Lansing, Michigan 48824
> Phone - 517 - 648 - 6290
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html