forked from GeoTIFF/geoblaze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
62 lines (54 loc) · 1.01 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import bandArithmetic from 'band-arithmetic';
import cache from 'cache';
import histogram from 'histogram';
import identify from 'identify';
import load from 'load';
import max from 'max';
import mean from 'mean';
import median from 'median';
import min from 'min';
import mode from 'mode';
import rasterCalculator from 'raster-calculator';
import sum from 'sum';
const geoblaze = {
cache,
bandArithmetic,
histogram,
identify,
load,
max,
mean,
median,
min,
mode,
rasterCalculator,
sum,
};
export default geoblaze;
export {
cache,
bandArithmetic,
histogram,
identify,
load,
max,
mean,
median,
min,
mode,
rasterCalculator,
sum
};
/* set window.geoblaze in the browser */
if (typeof window !== 'undefined') {
window['geoblaze'] = geoblaze;
}
/* set self.geoblaze in a web worker */
if (typeof self !== 'undefined') {
self['geoblaze'] = geoblaze;
}
/* set global.geoblaze in node */
if (typeof global !== 'undefined') {
global['geoblaze'] = geoblaze;
}
module.exports = geoblaze;