Pzhao1990 / netcdfjs

Read and explore NetCDF files

Home Page:https://cheminfo.github.io/netcdfjs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

netcdfjs

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

Read and explore NetCDF v3 files.

Installation

$ npm install netcdfjs

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

About

Read and explore NetCDF files

https://cheminfo.github.io/netcdfjs/

License:MIT License


Languages

Language:JavaScript 100.0%