Socket
Socket
Sign inDemoInstall

nrrd-js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nrrd-js

Handling NRRD files in Javascript.


Version published
Weekly downloads
242
decreased by-15.38%
Maintainers
1
Weekly downloads
 
Created
Source

NRRD support for Javascript

This can parse and serialize files in the Nearly Raw Raster Data format. Currently it only supports inline data (although in principle there is parsing support for datafile, and if you take care of the external data yourself writing headers using external data should also work).

To use with ndarray, proceed as follows:

var nrrdfile = nrrd.parse(...);
var array = ndarray(nrrdfile.data, nrrdfile.sizes.slice().reverse());
var minimalNrrdfileArrayBuffer = nrrd.serialize({data: array.data, sizes: array.shape.slice().reverse()}); // If array.data is something other than a typed array, you should specify the 'type'.

FAQs

Package last updated on 11 Dec 2013

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