Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/idw

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/idw - npm Package Compare versions

Comparing version 3.13.1 to 3.14.0

16

index.js

@@ -13,11 +13,11 @@ var distance = require('@turf/distance');

*
* @name idw
* @param {FeatureCollection<Point>} controlPoints Sampled points with known value
* @param {string} valueField GeoJSON field containing the known value to interpolate on
* @param {number} b Exponent regulating the distance-decay weighting
* @param {number} cellWidth The distance across each cell
* @param {string} [units=kilometers] used in calculating cellSize, can be degrees, radians, miles, or kilometers
* @return {FeatureCollection<Polygon>} grid A grid of polygons with a property field "IDW"
* @name idw
* @param {FeatureCollection<Point>} controlPoints Sampled points with known value
* @param {string} valueField GeoJSON field containing the known value to interpolate on
* @param {number} b Exponent regulating the distance-decay weighting
* @param {number} cellWidth The distance across each cell
* @param {string} [units=kilometers] used in calculating cellSize, can be degrees, radians, miles, or kilometers
* @returns {FeatureCollection<Polygon>} grid A grid of polygons with a property field "IDW"
*/
module.exports = function idw(controlPoints, valueField, b, cellWidth, units) {
module.exports = function (controlPoints, valueField, b, cellWidth, units) {
// check if field containing data exists..

@@ -24,0 +24,0 @@ var filtered = controlPoints.features.filter(function (feature) {

{
"name": "@turf/idw",
"version": "3.13.1",
"version": "3.14.0",
"description": "turf idw module",

@@ -29,8 +29,8 @@ "main": "index.js",

"dependencies": {
"@turf/bbox": "^3.13.0",
"@turf/centroid": "^3.13.0",
"@turf/distance": "^3.13.0",
"@turf/bbox": "^3.14.0",
"@turf/centroid": "^3.14.0",
"@turf/distance": "^3.14.0",
"@turf/helpers": "^3.13.0",
"@turf/square-grid": "^3.13.1"
"@turf/square-grid": "^3.14.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc