UNPKG

1.33 kBJavaScriptView Raw
1import bandArithmetic from "./band-arithmetic";
2import cache from "./cache";
3import get from "./get";
4import histogram from "./histogram";
5import identify from "./identify";
6import load from "./load";
7import max from "./max";
8import mean from "./mean";
9import median from "./median";
10import min from "./min";
11import mode from "./mode";
12import parse from "./parse";
13import rasterCalculator from "./raster-calculator";
14import sum from "./sum";
15import stats from "./stats";
16
17const geoblaze = {
18 cache,
19 bandArithmetic,
20 get,
21 histogram,
22 identify,
23 load,
24 max,
25 mean,
26 median,
27 min,
28 mode,
29 parse,
30 rasterCalculator,
31 sum,
32 stats
33};
34
35export default geoblaze;
36
37export { cache, bandArithmetic, get, histogram, identify, load, max, mean, median, min, mode, parse, rasterCalculator, sum, stats };
38
39/* require geoblaze in AMD environment */
40if (typeof define === "function" && define.amd) { // eslint-disable-line no-undef
41 define(() => { return geoblaze; }); // eslint-disable-line no-undef
42}
43
44/* set window.geoblaze in the browser */
45if (typeof window !== "undefined") {
46 window["geoblaze"] = geoblaze;
47}
48
49/* set self.geoblaze in a web worker */
50if (typeof self !== "undefined") {
51 self["geoblaze"] = geoblaze;
52}
53
54/* set global.geoblaze in node */
55if (typeof global !== "undefined") {
56 global["geoblaze"] = geoblaze;
57}