Hi Giuseppe,
gdal_calc is built on operations with matrices using the Python module
'numpy' http://numpy.scipy.org/
Instead of digging into it I would suggest to study numpy functionality
a bit. The following simple script somewhat solves your problem:
import numpy as np
"""
you may data f
Hi,
I'm new in python and i would like to start in the hard way by modify
an already existing script.
In particular, I'm searching for a python script that is computing
statistic of a raster base on another existing category raster.
Something similar to r.statistics in grass.
The out put has to be