@loaders.gl/scientific 5.0.0-alpha.14 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +2 -30
- package/README.md +10 -2
- package/THIRD-PARTY-NOTICES.md +21 -0
- package/dist/index.cjs +78 -4106
- package/dist/index.cjs.map +4 -3
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/parsers/parse-npy.d.ts +15 -0
- package/dist/lib/parsers/parse-npy.d.ts.map +1 -0
- package/dist/lib/parsers/parse-npy.js +81 -0
- package/dist/lib/parsers/parse-npy.js.map +1 -0
- package/dist/netcdf/bundled.cjs +1 -2
- package/dist/netcdf/index.cjs +1 -2
- package/dist/netcdf/index.cjs.map +2 -2
- package/dist/netcdf/netcdf-loader-with-parser.cjs +1 -2
- package/dist/netcdf/netcdf-loader-with-parser.js +1 -1
- package/dist/netcdf/netcdf-loader-with-parser.js.map +1 -1
- package/dist/netcdf/netcdf-loader.cjs +5 -4
- package/dist/netcdf/netcdf-loader.cjs.map +7 -0
- package/dist/netcdf/netcdf-loader.js +1 -1
- package/dist/netcdf/netcdf-loader.js.map +1 -1
- package/dist/netcdf/netcdf-source-loader-types.js +1 -1
- package/dist/netcdf/netcdf-source-loader-types.js.map +1 -1
- package/dist/netcdf/netcdf-source-loader.js +1 -1
- package/dist/netcdf/netcdf-source-loader.js.map +1 -1
- package/dist/netcdf/unbundled.cjs +1 -2
- package/dist/netcdf.min.js +3 -3
- package/dist/npy-format.d.ts +12 -0
- package/dist/npy-format.d.ts.map +1 -0
- package/dist/npy-format.js +15 -0
- package/dist/npy-format.js.map +1 -0
- package/dist/npy-loader-types.cjs +80 -0
- package/dist/npy-loader-types.cjs.map +7 -0
- package/dist/npy-loader-types.d.ts +73 -0
- package/dist/npy-loader-types.d.ts.map +1 -0
- package/dist/npy-loader-types.js +34 -0
- package/dist/npy-loader-types.js.map +1 -0
- package/dist/npy-loader.cjs +273 -0
- package/dist/npy-loader.cjs.map +6 -0
- package/dist/npy-loader.d.ts +27 -0
- package/dist/npy-loader.d.ts.map +1 -0
- package/dist/npy-loader.js +15 -0
- package/dist/npy-loader.js.map +1 -0
- package/dist/npy-worker.d.ts +2 -0
- package/dist/npy-worker.d.ts.map +1 -0
- package/dist/npy-worker.js +750 -0
- package/dist/npy-worker.js.map +1 -0
- package/dist/vtk/index.cjs +4 -4118
- package/dist/vtk/index.cjs.map +2 -2
- package/dist/vtk/vtk-xml.js +4 -4
- package/dist/vtk/vtk-xml.js.map +1 -1
- package/dist/workers/npy-worker.d.ts +2 -0
- package/dist/workers/npy-worker.d.ts.map +1 -0
- package/dist/workers/npy-worker.js +7 -0
- package/dist/workers/npy-worker.js.map +1 -0
- package/dist/zarr/geo-zarr-source-loader.d.ts.map +1 -1
- package/dist/zarr/geo-zarr-source-loader.js +162 -43
- package/dist/zarr/geo-zarr-source-loader.js.map +1 -1
- package/dist/zarr/index.cjs +194 -43
- package/dist/zarr/index.cjs.map +2 -2
- package/dist/zarr/lib/spatial-multiscales.d.ts +13 -2
- package/dist/zarr/lib/spatial-multiscales.d.ts.map +1 -1
- package/dist/zarr/lib/spatial-multiscales.js +94 -8
- package/dist/zarr/lib/spatial-multiscales.js.map +1 -1
- package/dist/zarr/ome-zarr-source-loader.js +1 -1
- package/dist/zarr/ome-zarr-source-loader.js.map +1 -1
- package/dist/zarr/zarr-loader-types.cjs +161 -0
- package/dist/zarr/zarr-loader-types.cjs.map +7 -0
- package/dist/zarr/zarr-loader-types.js +1 -1
- package/dist/zarr/zarr-loader-types.js.map +1 -1
- package/dist/zarr.dev.js +205 -47
- package/dist/zarr.min.js +50 -50
- package/package.json +46 -8
- package/src/index.ts +5 -0
- package/src/lib/parsers/parse-npy.ts +123 -0
- package/src/netcdf/netcdf-loader-with-parser.ts +1 -1
- package/src/npy-format.ts +17 -0
- package/src/npy-loader-types.ts +50 -0
- package/src/npy-loader.ts +21 -0
- package/src/npy-worker.ts +6 -0
- package/src/vtk/vtk-xml.ts +4 -4
- package/src/workers/npy-worker.ts +8 -0
- package/src/zarr/geo-zarr-source-loader.ts +195 -44
- package/src/zarr/lib/spatial-multiscales.ts +104 -8
- package/third-party-licenses/iobuffer-LICENSE +21 -0
package/LICENSE
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
loaders.gl is licensed under the MIT license
|
|
2
2
|
|
|
3
3
|
Copyright (c) vis.gl contributors
|
|
4
|
+
Copyright (c) 2015 Uber Technologies, Inc.
|
|
4
5
|
|
|
5
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
7
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -20,33 +21,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
20
21
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
22
|
THE SOFTWARE.
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Copyright (c) 2015 Uber Technologies, Inc.
|
|
26
|
-
|
|
27
|
-
Portions of modules/images/src/lib/category-api/binary-image-api.ts are based on
|
|
28
|
-
binary-gltf-utils (https://github.com/Qantas94Heavy/binary-gltf-utils) under the
|
|
29
|
-
MIT License reproduced above.
|
|
30
|
-
|
|
31
|
-
Copyright (c) 2016-17 Karl Cheng
|
|
32
|
-
|
|
33
|
-
Portions of modules/core/src/schema-utils/lib/utils/async-queue.ts are adapted from
|
|
34
|
-
async-iter-demo (https://github.com/rauschma/async-iter-demo) under the MIT
|
|
35
|
-
License reproduced above.
|
|
36
|
-
|
|
37
|
-
Copyright (c) 2016 Axel Rauschmayer
|
|
38
|
-
|
|
39
|
-
loaders.gl includes certain files from Cesium (https://github.com/CesiumGS/cesium)
|
|
40
|
-
under the Apache 2.0 License, including files in modules/3d-tiles.
|
|
41
|
-
|
|
42
|
-
Copyright 2011-2018 CesiumJS Contributors
|
|
43
|
-
|
|
44
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
-
you may not use this file except in compliance with the License.
|
|
46
|
-
You may obtain a copy of the License at
|
|
47
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
48
|
-
|
|
49
|
-
Unless required by applicable law or agreed to in writing, software
|
|
50
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
51
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
52
|
-
See the License for the specific language governing permissions and limitations under the License.
|
|
24
|
+
For adapted portions, see THIRD-PARTY-NOTICES.md and the applicable upstream terms.
|
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @loaders.gl/scientific
|
|
2
2
|
|
|
3
|
-
Scientific
|
|
3
|
+
Scientific array sources and readers for NPY, NetCDF, Zarr, GRIB2, HDF5, and VTK.
|
|
4
|
+
|
|
5
|
+
Supported formats: NPY, NetCDF, NetCDF-4, Zarr, GeoZarr, OME-Zarr, SpatialData, GRIB2, HDF5, VTK, VTI, VTR, VTS, VTU, VTP. GRIB2, HDF5, NetCDF-4, and VTK readers have the implementation limits documented below.
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
8
|
npm install @loaders.gl/core @loaders.gl/scientific
|
|
@@ -9,7 +11,8 @@ npm install @loaders.gl/core @loaders.gl/scientific
|
|
|
9
11
|
The package root exports lightweight loader metadata. Async loaders can preload their parser when needed. Import format implementations explicitly when you need a parser or source class directly:
|
|
10
12
|
|
|
11
13
|
```ts
|
|
12
|
-
import {NetCDFLoader, NetCDFSourceLoader, OMEZarrSourceLoader} from '@loaders.gl/scientific';
|
|
14
|
+
import {NPYLoader, NetCDFLoader, NetCDFSourceLoader, OMEZarrSourceLoader} from '@loaders.gl/scientific';
|
|
15
|
+
import {NPYLoaderWithParser} from '@loaders.gl/scientific/npy-loader';
|
|
13
16
|
import {NetCDFLoaderWithParser} from '@loaders.gl/scientific/netcdf';
|
|
14
17
|
import {OMEZarrImageSource, loadZarr} from '@loaders.gl/scientific/zarr';
|
|
15
18
|
```
|
|
@@ -25,3 +28,8 @@ The package groups independently documented formats and adapters:
|
|
|
25
28
|
- [Scientific vector fields](./VECTOR-FIELD.md): aligned velocity components from scientific arrays.
|
|
26
29
|
|
|
27
30
|
Zarr v2 and v3 storage support is provided by the `zarr` and `zarrita` packages, installed as dependencies of `@loaders.gl/scientific`.
|
|
31
|
+
|
|
32
|
+
## Sources and credits
|
|
33
|
+
|
|
34
|
+
See [THIRD-PARTY-NOTICES.md](./THIRD-PARTY-NOTICES.md) for implementation lineage
|
|
35
|
+
and applicable notices, and the project-wide [References and credits](https://loaders.gl/docs/references-and-credits).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @loaders.gl/scientific: sources and credits
|
|
2
|
+
|
|
3
|
+
[cheminfo/netcdfjs](https://github.com/cheminfo/netcdfjs) supplies adapted NetCDF parsing in [src/netcdf/netcdfjs](./src/netcdf/netcdfjs), retaining the [MIT license](./src/netcdf/netcdfjs/LICENSE). The local [IOBuffer](./src/netcdf/iobuffer/iobuffer.ts) implementation comes from the [IOBuffer project](https://github.com/image-js/iobuffer); [full MIT license](./third-party-licenses/iobuffer-LICENSE).
|
|
4
|
+
|
|
5
|
+
Zarr integrations use separately installed [zarrita.js](https://github.com/manzt/zarrita.js) and the legacy [zarr.js](https://github.com/gzuidhof/zarr.js). Zarr and OME-NGFF communities define storage and multiscale metadata. Dataset authors are credited independently in the repository fixtures and examples.
|
|
6
|
+
|
|
7
|
+
The GRIB2 simple-packing decoder and shared scientific-array contract are developed by vis.gl contributors. The World Meteorological Organization defines GRIB; format design is separate from this implementation.
|
|
8
|
+
|
|
9
|
+
## Scope and maintenance
|
|
10
|
+
|
|
11
|
+
Original loaders.gl contributions are covered by [LICENSE](./LICENSE). The upstream
|
|
12
|
+
notices above apply to their respective portions and do not change those terms.
|
|
13
|
+
Source adaptations, separately installed libraries, format definitions and test
|
|
14
|
+
data are different contributions. This index is not a transitive dependency
|
|
15
|
+
bill of materials. Runtime dependencies can bring additional notices.
|
|
16
|
+
|
|
17
|
+
Version information is recorded where the repository preserves it. Unpinned
|
|
18
|
+
historical ports are identified by retained source and Git history; no upstream
|
|
19
|
+
version is inferred from a current dependency. Keep copyright headers, full
|
|
20
|
+
terms, source/version information and material modification notes when updating.
|
|
21
|
+
Retain this file and the applicable licenses when redistributing bundles or workers.
|