I am writing my processor in python. I created a set of spectral reflectance bands, following the naming convention “refl_i” where “i” is an index. Now I want to add a Band Grouping “refl” to the product’s properties, but I don’t know the method I have to use. Any sample code (java or python) would help me.
The method you are looking for is Product.setAutoGrouping(String pattern).
The general API documentation can be found in the developer section of the STEP website.
Sample code for your use case would look like:
Great - that’s doing what I want!