[R-sig-Geo] averaging home range contours

Anthony Fischbach afischbach at usgs.gov
Thu Apr 26 21:08:04 CEST 2012


You may first sum the ud values over all iterations,
normalize the volume back to 1, 
then calcuate the volumetric contour from the summary ud volume.

## Something like this:
##First cast the estUD to a spatial pixel data frame
kud_spdf<-estUD2spixdf(kud)
## Convert to fullgrid (i.e. SpatialGridDataFrame)
fullgrid(kud_spdf) <- TRUE
## handle the pixel level volume data
vd<-kud_spdf at data
## from here you can summarize the volume data across your iterations
vd_all ## use loop to sum across pixel values
## normalize to a volume of 1
## cast back into a spatial pixel data frame
kudspdf_all at data <- vd_all
## and cast back into an estUD object
kud_all <- new("estUD", kudspdf_all) 
kud_all at h <- list(h=0, meth="specified") # fake value 
kud_all at vol <- FALSE
## then get your volumetric contour

-HTH , -Tony

-----
Tony Fischbach, Wildlife Biologist
Walrus Research Program
Alaska Science Center
U.S. Geological Survey
4210 University Drive
Anchorage, AK 99508-4650

AFischbach at usgs.gov
http://alaska.usgs.gov/science/biology/walrus
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/averaging-home-range-contours-tp7499301p7503972.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list