stilt.observations.plumes.kernel_density#

stilt.observations.plumes.kernel_density(longitudes, latitudes, *, bandwidth=(0.1, 0.15), n=100)[source]#

Gaussian kernel density of points on a regular n × n lon/lat grid.

The bandwidths follow R’s MASS::kde2d: the kernel’s standard deviation is a quarter of bandwidth in each direction (so the defaults are 0.025° in longitude and 0.0375° in latitude). The grid spans the points plus one bandwidth on every side. The result is normalised to a maximum of one, since only the shape matters.

Return type:

DataArray

Parameters: