Wondering what’s next for npm?Check out our public roadmap! »

    netcdf-gcms

    1.4.0 • Public • Published

    netcdf-gcms

    NPM version build status Test coverage David deps 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

    Install

    npm i netcdf-gcms

    DownloadsWeekly Downloads

    15

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    40.8 kB

    Total Files

    12

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar