Skip to content

cheminfo/netcdfjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c8b73f5 · Aug 9, 2023

History

94 Commits
Aug 8, 2023
Aug 8, 2023
Aug 8, 2023
Aug 8, 2023
Aug 8, 2023
Jun 16, 2019
Aug 8, 2023
Aug 9, 2023
Oct 24, 2016
Aug 8, 2023
Aug 8, 2023
Aug 9, 2023
Aug 8, 2023
Aug 8, 2023
Aug 8, 2023

Repository files navigation

netcdfjs

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

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