@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
| Logo | Subpath | Public entry APIs | Reference |
|---|---|---|---|
| — | /npy-loader | NPYLoaderWithParser | NPYLoader |
![]() | /netcdf | NetCDFLoaderWithParser, NetCDFReader, NetCDFSource, openNetCDF4Source | NetCDF |
/zarr | OME-Zarr, GeoZarr, generic array, and SpatialData sources | Zarr | |
| — | /hdf5 | openHDF5Source, HDF5Source, experimental HDF5TypeScriptFile | HDF5 |
| — | /grib2 | parseGRIB2, GRIB2Source | GRIB2 |
![]() | /vtk | parseVTKLegacy, parseVTKXML | VTK |
| — | /pdb | PDBLoader, PDBLoaderWithParser | PDB |
| — | /scientific-array | Common scientific-array interfaces and helpers | Shared source contracts |
| — | /vector-field | Vector-field processing helpers | Explicit 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.

