Re: [R] random uniform sample of points on an ellipsoid (e.g. WGS84)

2007-02-22 Thread Roger Bivand
On 21 Feb 2007, Russell Senior wrote:

 
 I am interested in making a random sample from a uniform distribution
 of points over the surface of the earth, using the WGS84 ellipsoid as
 a model for the earth.  I know how to do this for a sphere, but would
 like to do better.  I can supply random numbers, want latitude
 longitude pairs out.
 
 Can anyone point me at a solution?  Thanks very much.
 

http://www.csit.fsu.edu/~burkardt/f_src/random_data/random_data.html

looks promising, untried.



 
 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: [EMAIL PROTECTED]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] random uniform sample of points on an ellipsoid (e.g. WGS84)

2007-02-21 Thread Russell Senior

I am interested in making a random sample from a uniform distribution
of points over the surface of the earth, using the WGS84 ellipsoid as
a model for the earth.  I know how to do this for a sphere, but would
like to do better.  I can supply random numbers, want latitude
longitude pairs out.

Can anyone point me at a solution?  Thanks very much.


-- 
Russell Senior ``I have nine fingers; you have ten.''
[EMAIL PROTECTED]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.