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 × nlon/lat grid.The bandwidths follow R’s
MASS::kde2d: the kernel’s standard deviation is a quarter ofbandwidthin 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:
- Parameters:
longitudes (_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes])
latitudes (_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes])
n (int)