npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

geoblaze-cli

v0.1.0

Published

Command Line Interface (CLI) for GeoBlaze

Downloads

5

Readme

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

  • https://github.com/GeoTIFF/geoblaze-cli/issues/

INTERNET RESOURCES

  • Source Code Repository: https://github.com/GeoTIFF/geoblaze-cli
  • Package Manager Entry: https://www.npmjs.com/package/geoblaze-cli
  • Slack Channel: https://geotiff.slack.com
  • Issue Tracker: https://github.com/GeoTIFF/geoblaze-cli/issues
  • GeoBlaze Information: https://geoblaze.io
  • Intersection Algorithm: https://medium.com/@DanielJDufour/calculating-intersection-of-polygon-with-a-raster-89c2624d78a2

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.