Miss any of our Open RFC calls?Watch the recordings here! »

xarray-loader

0.1.3 • Public • Published

xarray dataset Loader

Only work in browsers which support ES6+

Usage

import { Dataset } from 'xarray-loader'
import raw_ds from './dataset.json'
 
let ds = new Dataset(raw_ds)
 
Array.from(ds.all) // load all data
 
Array.from(ds.sel(v => v.Value === 'Some Value')) // filter data

Every datum is in form of

{
    key0: 'value0',
    key1: 'value1',
    key2: 'value2',
    ...
}

Example

https://beta.observablehq.com/@buckle2000/world-governance-index

License

MIT

TODO

Need optimization

Install

npm i xarray-loader

DownloadsWeekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

2.03 MB

Total Files

19

Last publish

Collaborators

  • avatar