3.0.0 • Published 10 months ago

netcdf-gcms v3.0.0

Weekly downloads
50
License
MIT
Repository
github
Last release
10 months ago

netcdf-gcms

NPM version build status Test coverage npm download

Parser from NetCDF files to JSON usable for GCMS

Installation

$ npm install netcdf-gcms

API Documentation

Example

const netcdfGcms = require("netcdf-gcms");
const fs = require("fs");

const data = fs.readFileSync("Agilent.cdf");

// reads the data from the file
const json = netcdfGcms(data);

// or if you already know the format
const agilentJson = netcdfGcms.fromAgilent(data);

json ===
  {
    times: [
      /* ... */
    ],
    series: [
      {
        name: "tic",
        dimension: 1,
        data: [
          /* ... */
        ],
      },
      {
        name: "ms",
        dimension: 2,
        data: [
          [
            [
              /* ... */
            ],
            [
              /* ... */
            ],
          ],
        ],
      },
    ],
  };

License

MIT

3.0.0

10 months ago

2.0.0

10 months ago

1.4.0

5 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

9 years ago