I am using the aspace
package to calculate the standard deviational ellipse of a set of points. Test shapefile with 5 points zipped here.
library(maptools)
library(sp)
library(aspace)
library(rgdal)
shpfile <- readShapePoints("testSHP.shp")
coords <- shpfile@coords
calc_sde(points=coords)
plot_sde(plotnew = TRUE)
r.SDE$Area.sde
The area is 2824712729.
I think I am getting tripped up by the coordinate system:
coords
# coords.x1 coords.x2
#0 3667152 8861968
#1 3713150 8878606
#2 3714374 8843128
#3 3683545 8834809
#4 3690396 8854383
The shapefile is set to +proj=longlat +datum=WGS84 +no_defs
.
- What are the units for this area?
- How can I project the coordinates in decimal degrees?
2824712729m^2
or2824.7km^2
. Looking at your grid that area looks about right.