JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7847
  • Score
    100M100P100Q122788F
  • License MIT

Read and explore NetCDF files

Package Exports

  • netcdfjs
  • netcdfjs/lib-esm/index.js
  • netcdfjs/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (netcdfjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

netcdfjs

NPM version build status Test coverage [npm download][download-url]

Read and explore NetCDF v3 files.

Installation

$ npm install netcdfjs

API Documentation

For further information about the grammar you should go to this link.

Example

const { readFileSync } = require("fs");
const { NetCDFReader } = require("netcdfjs");

// http://www.unidata.ucar.edu/software/netcdf/examples/files.html
const data = readFileSync("madis-sao.nc");

var reader = new NetCDFReader(data); // read the header
reader.getDataVariable("wmoId"); // go to offset and read it

License

MIT