Get maximum value inside a single band using GPT

There is the StatisticsOp. But it is not well documented.
Best documentation is can be found here: A StatisticsOp graph - GPF Graphs - STEP Forum (esa.int)

If you you use python you can use a script for getting the max value.

sourceProduct = ProductIO.readProduct(sys.argv[1])
b2 = sourceProduct.getBand('B2')
accurate= False # or True but takes longer
stx = b2.getStx(accurate, ProgressMonitor.NULL)
max = stx.getMaximum()
1 Like