{"name":"@turf/interpolate","version":"6.2.0-alpha.3","keywords":["turf","idw","interpolate"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/interpolate@6.2.0-alpha.3","contributors":[{"name":"Stefano Borghi","email":"@stebogit"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"97f9dcd7bb918d2ad7f9af7c952ece25ea7dab27","tarball":"http://registry-npm.ywwl.com/@turf/interpolate/download/@turf/interpolate-6.2.0-alpha.3.tgz","fileCount":8,"integrity":"sha512-IMmteY3KrjbRCC3zCgjZNcB531v55EEZbxl0Oj0Ge1TXwQSo2DvWTKM27AWJfmWczNzj1qonrYo52XncI/qxlQ==","signatures":[{"sig":"MEQCICubQSnvfuqjpzkYAQFH5CcOIC2XPaaUpftL22SZvOU9AiBaPGDovDlEmfscezWg+jepgs6DXmkhns1Tm/2UTxkEwQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0o8YCRA9TVsSAnZWagAAC8oP/1TcmQx0v2imH4A2Pwjg\n+ubCf7iNCBdN2mGbIL2j3D4+pU4VA5b4RbbLg1unwxTLOQ52fOYAb2Z2srVf\nJeE2qt3PMCSVfmwT0Ujw7IQa4lyDrNt6+D8+YgoR0GqRcs3mcSAJM/kcG0qr\nOvI6AubQnZM1apIhMdHQzavEL4Re6ZzJIoGeGtwAfJC/Qk5Sa12a0C3R2qXG\nneCkajc14C+8P7CqDdau+w6CuhHnnDBLyg0ldJ/ZA63Wzux7fBcVZCtWkFwz\ngL/tDvBAP+mVVR1jKILdR+cyMK0/wSelWC9oJTHs5oHROrjPUKdkvyiv0jiH\nLOXAQ+9vqIMB+DlqymDkDUl4UftNPbtXKyYQJHZpJQH/NKm2iiq9UfpYXBtK\n6dO+35alL6UsqxjnPgo1S7cB+/zGkv8+Vku00QxDslc7Pq2020D20XCf6888\ncd3AMoUBmChJcjXXSGLzqCZiTU9QHxi5aCLbKbllI9qZj+IyH4qi9aypz7n7\nwS0mt5O7F831RKj23hgxZ7T7YZNLTog7HI1ICE/epbntKfCEZHGF8aRkavHF\noSqwDCN3UjeVlSOHpKP1ewW1HLbDzaJCLUFwR6uKMYyaYH49GxORJJqvWh79\nzZmBI6NAo3xBIuUJ8tiHqKl0DlWSbxvR/e0rEjJgp4GhHid+Q/rgusNrdgcj\nf5XD\r\n=7kLP\r\n-----END PGP SIGNATURE-----\r\n","size":4575,"noattachment":false,"key":"/@turf/interpolate/-/@turf/interpolate-6.2.0-alpha.3.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","exports":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"gitHead":"dce9edfc705352e8cb9e0083c9330ba0e8d77409","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"node -r esm bench.js","build":"rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json","posttest":"node -r esm ../../scripts/validate-es5-dependencies.js","test:tape":"node -r esm test.js","test:types":"tsc --esModuleInterop --noEmit types.ts"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v13.10.1+x64 (darwin)","description":"turf interpolate module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/bbox":"^6.2.0-alpha.3","@turf/meta":"^6.2.0-alpha.3","@turf/clone":"^6.2.0-alpha.3","@turf/helpers":"^6.2.0-alpha.3","@turf/centroid":"^6.2.0-alpha.3","@turf/distance":"^6.2.0-alpha.3","@turf/hex-grid":"^6.2.0-alpha.3","@turf/invariant":"^6.2.0-alpha.3","@turf/point-grid":"^6.2.0-alpha.3","@turf/square-grid":"^6.2.0-alpha.3","@turf/triangle-grid":"^6.2.0-alpha.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","rollup":"*","benchmark":"*","chromatism":"*","npm-run-all":"*","@turf/truncate":"^6.2.0-alpha.3","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/interpolate_6.2.0-alpha.3_1607634711781_0.5649108543570673","host":"s3://npm-registry-packages"},"readme":"# @turf/interpolate\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## interpolate\n\nTakes a set of points and estimates their 'property' values on a grid using the [Inverse Distance Weighting (IDW) method][1].\n\n### Parameters\n\n*   `points` **[FeatureCollection][2]<[Point][3]>** with known value\n*   `cellSize` **[number][4]** the distance across each grid point\n*   `options` **[Object][5]** Optional parameters (optional, default `{}`)\n\n    *   `options.gridType` **[string][6]** defines the output format based on a Grid Type (options: 'square' | 'point' | 'hex' | 'triangle') (optional, default `'square'`)\n    *   `options.property` **[string][6]** the property name in `points` from which z-values will be pulled, zValue fallbacks to 3rd coordinate if no property exists. (optional, default `'elevation'`)\n    *   `options.units` **Units** used in calculating cellSize. Supports all valid Turf [Units][7]. (optional, default `'kilometers'`)\n    *   `options.weight` **[number][4]** exponent regulating the distance-decay weighting (optional, default `1`)\n    *   `options.bbox` **[BBox][8]** Bounding Box Array \\[west, south, east, north] associated with the FeatureCollection. (optional, default `bbox(points)`)\n\n### Examples\n\n```javascript\nvar points = turf.randomPoint(30, {bbox: [50, 30, 70, 50]});\n\n// add a random property to each point\nturf.featureEach(points, function(point) {\n    point.properties.solRad = Math.random() * 50;\n});\nvar options = {gridType: 'points', property: 'solRad', units: 'miles'};\nvar grid = turf.interpolate(points, 100, options);\n\n//addToMap\nvar addToMap = [grid];\n```\n\nReturns **[FeatureCollection][2]<([Point][3] | [Polygon][9])>** grid of points or polygons with interpolated 'property'\n\n[1]: https://en.wikipedia.org/wiki/Inverse_distance_weighting\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\n\n[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String\n\n[7]: https://turfjs.org/docs/api/types/Units\n\n[8]: https://tools.ietf.org/html/rfc7946#section-5\n\n[9]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run \"yarn docs\" from the root of the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](https://turfjs.org/), an open source module collection dedicated to geographic algorithms. It is maintained in the [Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create PRs and issues.\n\n### Installation\n\nInstall this single module individually:\n\n```sh\n$ npm install @turf/interpolate\n```\n\nOr install the all-encompassing @turf/turf module that includes all modules as functions:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1607634711932,"maintainers":[{"name":"smallsaucepan","email":"james@smallsaucepan.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"_cnpm_publish_time":1607634711932,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}