geoblaze-cli

0.1.0 • Public • Published

geoblaze -- a command line interface for blazing fast raster analysis

SYNOPSIS

  • geoblaze identify <georaster> <point>
  • geoblaze id <georaster> <point>
  • geoblaze max <georaster> [geovector]
  • geoblaze min <georaster> [geovector]
  • geoblaze mean <georaster> [geovector]
  • geoblaze median <georaster> [geovector]
  • geoblaze mode <georaster> [geovector]
  • geoblaze sum <georaster> [geovector]
  • geoblaze version

DESCRIPTION

GeoBlaze CLI is an open-source command line interface to the GeoBlaze JavaScript Raster Processing Engine (geoblaze.io). It allows you to do simple basic aggregate statistics like, mean, median and mode while only typing one line. You can also use it to simply run band arithmetic like NDVI and save the result to a file.

OPTIONS

  • identify, id: Get the value of the pixel at the specified point. The Point should be specified as a longitude and latitude pair "-40,20"
  • max: Get the highest value in the raster, ignoring no data values.
  • min: Get the lowest value in the raster, ignoring no data values.
  • mean: Get the mean average of pixel values in a raster. You can optionally specify a geovector file, like a geojson or a shapefile, so the calculation is only run on the pixels of the raster inside of the vectors.
  • median: Get the median average of pixel values in a raster. You can optionally specify a geovector file, like a geojson or a shapefile, so the calculation is only run on the pixels of the raster inside of the vectors.
  • mode: Get the most common pixel value in a raster. You can optionally specify a geovector file, like a geojson or a shapefile, so the calculation is only run on the pixels of the raster inside of the vectors.
  • sum: Get the sum of pixel values in a raster file. You can optionally specify a geovector file, like a geojson or a shapefile, so the calculation is only run on the pixels of the raster inside of the vectors.
  • version: Show version, which is found in the package.json

Examples

Get the Pixel Value at Paris, France

geoblaze id image.tiff "48.8567,2.3508"

Get Acreage of Wheat in Ukraine

geoblaze sum https://s3.amazonaws.com/geoblaze/spam2005v2r0_production_wheat_rainfed.tiff https://s3.amazonaws.com/geoblaze/ukraine.geojson

Get Acreage of Wheat in Iowa

geoblaze sum spam2005v2r0_production_wheat_rainfed.tiff Iowa.geojson

More Examples

https://github.com/GeoTIFF/geoblaze-cli/blob/master/EXAMPLES.md

AUTHOR

Daniel J. Dufour: https://danieljdufour.com

BUGS

INTERNET RESOURCES

LICENSING

The GeoBlaze CLI is distributed under the MIT License. See the file "LICENSE" in the GeoBlaze CLI source-distribution for information on terms & conditions for accessing and otherwise using the GeoBlaze CLI and for a DISCLAIMER OF ALL WARRANTIES.

Dependencies (4)

Dev Dependencies (6)

Package Sidebar

Install

npm i geoblaze-cli

Weekly Downloads

0

Version

0.1.0

License

CC0-1.0

Unpacked Size

28.1 kB

Total Files

19

Last publish

Collaborators

  • danieljdufour