You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We generate long MCMC chains, posterior samples at arbitrary observation-times with longitude, latitude from modelling animal location. The observation times are (usually) roughly twice-daily at local twilight, or at more arbitrary times whenever the Argos Service observes the tag, or perhaps other derived or quality filtered locations from GPS. To summarize these we developed a system of sparse and abstract 3D rasters, with a time slice at each observation time, and with each observation stored as a small window matrix from a "parent grid". Since the posterior samples are spatially dense it makes sense to to "bin" them into a local discretized window, and store a local matrix for every observation - this things the chains immensely and provides a continuous spatial model of positional-likelihood or other metric of intensity (like time-spent).
This was implemented long ago in tripEstimation::pimg (on CRAN) and sees a more modern version in SGAT::Pimage (at github.com/SWotherspoon/SGAT). I've been toying with a new "tidy" version that uses raster/dplyr as the binning engine, by coalescing tables of cell counts using group_by after identifying cells with raster. This is as fast as the fastest we could make the old matrix versions, that used tabulate with a simple affine transform and local indexing within a parent matrix to avoid expanding the parent by time.
It's really straightforward to do this, and it makes for very compelling summary engine for building duration-based metrics of location-probability, time-spent surfaces and animations of these, from large collections of tracking data. The local window model scales up to any number of tracking events, since it collapses long MCMC chains into very efficient discretized versions. There's an overhead to calculate any particular bin choice, and coordinate system of course but the results are so useful it makes a nice step from the model outputs to the result stage.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: