Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Before you built something very broken, please do try setting the Accuracy in QGIS. Surely you do not want to always ignore the value 0 when calculating statistics. Commented May 16, 2024 at 11:15
  • @bugmenot123 as you can see in the code, i do not ignore the value 0 when converting the image to Byte. I only ignore the value 0 when getting the percentile for the cumulative count cut. The objective of this question was to try and figure it out how QGIS does this and replicate in python. That is what was done. Commented May 16, 2024 at 14:06