Skip to main content

@loaders.gl/scientific

Scientific array sources and parsers for NPY, NetCDF, Zarr, HDF5, GRIB2, and VTK. Support differs by format and encoding; the focused references below describe the implementation on master.

npm install @loaders.gl/core @loaders.gl/scientific
LogoSubpathPublic entry APIsReference
—/npy-loaderNPYLoaderWithParserNPYLoader
/netcdfNetCDFLoaderWithParser, NetCDFReader, NetCDFSource, openNetCDF4SourceNetCDF
/zarrOME-Zarr, GeoZarr, generic array, and SpatialData sourcesZarr
—/hdf5openHDF5Source, HDF5Source, experimental HDF5TypeScriptFileHDF5
—/grib2parseGRIB2, GRIB2SourceGRIB2
/vtkparseVTKLegacy, parseVTKXMLVTK
—/pdbPDBLoader, PDBLoaderWithParserPDB
—/scientific-arrayCommon scientific-array interfaces and helpersShared source contracts
—/vector-fieldVector-field processing helpersExplicit processing entrypoint

The root exports NetCDF, Zarr, NRRD, VTK and PDB metadata loaders and shared types. It does not re-export every parser or experimental source. For direct NetCDF parsing:

import {parse, parseSync} from '@loaders.gl/core';
import {NetCDFLoader} from '@loaders.gl/scientific';
import {NetCDFLoaderWithParser} from '@loaders.gl/scientific/netcdf';

const result = await parse(bytes, NetCDFLoader);
const synchronousResult = parseSync(bytes, NetCDFLoaderWithParser);

The package currently installs h5wasm, zarr, zarrita, and XML parsing support as dependencies. Subpath imports control which code is loaded, but do not create separate installation units.

Sources and credits​

See the package source and license inventory and the project-wide Attributions and Credits.

NPYLoader and NPYFormat are metadata exports from the lightweight package root. For parser access use the flat @loaders.gl/scientific/npy subpath.

Format guides​

Package exports​

All exported subpaths (17)

These are the package's public exports, including format entry points, parsers, writers, sources, and worker assets.

FormatImport subpath
@loaders.gl/scientific/grib2
@loaders.gl/scientific/hdf5
@loaders.gl/scientific/netcdf
@loaders.gl/scientific/netcdf/bundled
@loaders.gl/scientific/npy
@loaders.gl/scientific/npy-worker.js
@loaders.gl/scientific/npy/bundled
@loaders.gl/scientific/nrrd
@loaders.gl/scientific/nrrd/bundled
@loaders.gl/scientific/pdb
@loaders.gl/scientific/pdb/bundled
@loaders.gl/scientific/scientific-array
@loaders.gl/scientific/vector-field
@loaders.gl/scientific/vtk
@loaders.gl/scientific/vtk/bundled
@loaders.gl/scientific/zarr
@loaders.gl/scientific/zarr/bundled