Socket
Socket
Sign inDemoInstall

turf-isobands

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-isobands

turf isobands module


Version published
Weekly downloads
54
increased by390.91%
Maintainers
1
Weekly downloads
 
Created
Source

turf-isobands

Build Status

Takes a FeatureCollection of points with z values and an array of value breaks and generates filled contour isobands. These are commonly used to create elevation maps, but can be used for general data interpolation as well.

###Install

npm install turf-isobands

###Parameters

namedescription
pointspoints use as seed values
zz value to contour
resolutionresolution of the underlying grid
breakswhere to draw contours

###Usage

isobands(points, z, resolution, breaks)

###Example

var isobands = require('turf-isobands')
var fs = require('fs')

var z = 'elevation'
var resolution = 15
var breaks = [.1, 22, 45, 55, 65, 85,  95, 105, 120, 180]
var points = JSON.parse(fs.readFileSync('/path/to/points.geojson'))

var isobanded = isobands(points, z, resolution, breaks)

console.log(isobanded)

Keywords

FAQs

Package last updated on 21 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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