In R is there a way to randomly generate values within a set extent from a given point. For example if I have coordinates and wish to generate 10 samples within an surrounding error field, can this be done? And if so, can the characteristics of the error field be defined, i.e a square or circle surrounding the original point. Any insight much appreciated.
Example:(WGS84 ESPG:4326)
Longitude Latitude ErrLong ErrLat
-91.98876953 1.671900034 0.53 1.08
-91.91790771 1.955003262 0.53 1.08
-91.91873169 1.961261749 0.53 1.08
-91.86060333 1.996331811 0.53 1.08
-91.67115021 1.929548025 0.12 0.12
-90.67552948 1.850875616 0.12 0.12
-90.65361023 1.799352288 0.12 0.12
-92.13287354 0.755102754 0.12 0.12
-92.13739014 0.783674061 0.12 0.12
-88.16407776 -4.953748703 0.12 0.12
-82.51725006 -5.717019081 0.12 0.12
-82.50763702 -5.706347942 0.12 0.12
-82.50556183 -5.696153641 0.12 0.12
-82.50305176 -5.685819626 0.12 0.12
-82.18003845 -5.623015404 0.53 1.08
-82.17269897 -5.61870575 0.53 1.08
-82.16355133 -5.612465382 0.12 0.12
For each long/lat I would like 10 randomly generated points within the stated error long/lat (in degrees) from the original location. The random samples should follow a normal distribution and the error field is circular (when lat/long error is equal) and elliptical if not.
Aucun commentaire:
Enregistrer un commentaire