Skip to content

Commit

Permalink
updated documentation for geoblaze.sum
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Aug 4, 2024
1 parent c2441dd commit 841ab5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sum/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import stat from "../stat";
* @param {GeoRaster|ArrayBuffer|Blob|Buffer|File|String} georaster - geospatial gridded raster data
* @param {Object} geometry - geometry can be an [xmin, ymin, xmax, ymax] array for a bounding box, [[[x00,y00],...,[x0n,y0n],[x00,y00]]...] for a polygon, a GeoJSON polygon object, or a string representation of a GeoJSON polygon object.
* @param {Function} test - a filter function that takes in a pixel value and returns true or false whether it should be included in the sum calculation
* @param {Object} extraOptions
* @param {[number, number] | "minimal"} extraOptions.vrm - virtual resampling multiplier for the horizontal (x) and vertical (y) dimensions. In other words, how many times we divide each pixel horizontally and vertically to increase resolution. If you don't want to pass in the exact number of times to divide the pixels, pass "minimal" and geoblaze will calculate the minimal amount of divisions to make sure at least one pixel is intersected.
* @param {Boolean} extraOptions.rescale - whether we should rescale results based on virtual pixel size. It is highly recommended you set rescale to true if you set vrm.
* @returns {Number[]} array of sums for each band
* @example
* // naip.tif has 4-bands: red, green, blue and near-infrared (nir)
Expand Down

0 comments on commit 841ab5e

Please sign in to comment.