GithubHelp home page GithubHelp logo

Zonal stats function about raster-functions HOT 4 OPEN

esri avatar esri commented on May 27, 2024
Zonal stats function

from raster-functions.

Comments (4)

shenganzhan avatar shenganzhan commented on May 27, 2024

Hi, if I understand you correctly, you can try to use the ArgStatistics function on your zone raster to get the max/min zones. Then you can publish the function chain to your server.

from raster-functions.

pucuz avatar pucuz commented on May 27, 2024

ArgStatistics looks like another potential way to get where I want to be but what I would like is for the output to be just a single value say average or sum of the pixels found in a polygon. I don't want to create an output raster, I just want to end up with a single value. I'm not sure that is even possible. Does the output of a raster function always have to be another raster?

from raster-functions.

pucuz avatar pucuz commented on May 27, 2024

I think I might be able to get what I want from the statistics of the Zonal Statistics output raster. I just have to figure out how to get at those values from the JS API.

from raster-functions.

shenganzhan avatar shenganzhan commented on May 27, 2024

Glad that you were able to find a right track.
On the earlier question: raster function does always need to output a raster. If you write your own python raster function, you can hard code some other output but that's generally not recommended.

from raster-functions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.