NetCDF
Install @loaders.gl/scientific and import NetCDFLoader from its root for asynchronous parsing
of the supported classic NetCDF formats. Direct parsing and source APIs are exported from
@loaders.gl/scientific/netcdf.
import {parse} from '@loaders.gl/core';
import {NetCDFLoader} from '@loaders.gl/scientific/netcdf';
const dataset = await parse(bytes, NetCDFLoader);
- NetCDF format describes the format and its encodings.
- NetCDFLoader describes the classic file parser.
- HDF5-backed NetCDF-4 uses the separate
openNetCDF4SourceAPI from@loaders.gl/scientific/netcdf. Its current HDF5 path uses the WASM backend described in HDF5; the classic metadata loader does not select it automatically.
Use NetCDFLoaderWithParser from the format subpath when calling parseSync.
Remote prefix reads use Content-Range for total file size when visible. If CORS hides that header, the source uses HEAD Content-Length; the partial GET Content-Length is never interpreted as the full size. Missing or invalid HEAD size fails explicitly.