The histogram function takes a raster as an input and an optional geometry. If a geometry is included, the function returns the histogram of all the pixels in that area. If no geometry is included, the pixels returns the histogram of all the pixels for each band in the raster.
(Object)
georaster from georaster library
(Object
= undefined)
a geometry, which we'll use for clipping result
Object:
array of histograms for each band
var histograms = geoblaze.histogram(georaster, geometry);
Given a raster and a point geometry, the identify function returns the pixel value of the raster at the given point.
The max function takes a raster as an input and an optional geometry. If a geometry is included, the function returns the max of all the pixels in that area. If no geometry is included, the pixels returns the max of all the pixels for each band in the raster.
(Object)
georaster from georaster library
(Object
= undefined)
a geometry, which we'll use for clipping result
Object:
array of maxs for each band
var maxs = geoblaze.max(georaster, geometry);
The median function takes a raster as an input and an optional geometry. If a geometry is included, the function returns the median of all the pixels in that area. If no geometry is included, the pixels returns the median of all the pixels for each band in the raster.
(Object)
georaster from georaster library
(Object
= undefined)
a geometry, which we'll use for clipping result
Object:
array of medians for each band
var medians = geoblaze.median(georaster, geometry);
The mode function takes a raster as an input and an optional geometry. If a geometry is included, the function returns the mode of all the pixels in that area. If no geometry is included, the pixels returns the mode of all the pixels for each band in the raster.
(Object)
georaster from georaster library
(Object
= undefined)
a geometry, which we'll use for clipping result
Object:
array of modes for each band
var modes = geoblaze.mode(georaster, geometry);
The min function takes a raster as an input and an optional geometry. If a geometry is included, the function returns the min of all the pixels in that area for each band. If no geometry is included, the pixels returns the min of all the pixels for each band in the raster.
(Object)
georaster from georaster library
(Object
= undefined)
a geometry, which we'll use for clipping result
Object:
array of mins for each band
var mins = geoblaze.min(georaster, geometry);
The sum function takes a raster as an input and an optional geometry. If a geometry is included, the function returns the sum of all the pixels in that area. If no geometry is included, the pixels returns the sum of all the pixels for each band in the raster.
(Object)
georaster from georaster library
(Object
= undefined)
a geometry, which we'll use for clipping result
Object:
array of sums for each band
var sums = geoblaze.sum(georaster, geometry);
This function categorizes an intersection
(Object)
This function takes in an array with an even number of elements and returns an array that couples every two consecutive elements;
(Object)
of anything
Object:
array of consecutive pairs
let items = [0, 1, 18, 77, 99, 103];
let unflattened = utils.couple(items);
// unflattened
// [ [0, 1], [18, 77], [99, 103] ]
This function takes in an array of number pairs and combines where there's overlap
(any)
(Object)
of anything
Object:
array of index ranges
let ranges = [ [0, 10], [10, 10], [20, 30], [30, 40] ];
let merged_ranges = utils.merge_ranges(ranges);
// merged_ranges
// [ [0, 10], [20, 40] ]