My goal is to create a simple workflow to process S2 data in GPT.
I have created a graph that loads multiple datasets (ProductSet-Reader), makes a mosaic of them (Multi size Mosaic), and then calculates certain values (BandMaths). It works well when run from GPT on a dataset that it was created for.
But when I want to process a different dataset with the same graph, I have to change input filenames and mosaic bounds manually in the XML file. Filenames are fine to manage, but to check the mosaic bounds, I have to open SNAP each time, which defeats my point for the workflow to be simple. Is there any way to “inject” mosaic bounds automatically from the loaded datasets (from GPT/Python level), as it happens in Graph Builder in SNAP?
And there is snapista. With this you can generate a graph and execute it as command line process.
But you would still need snappy to retrieve the geoinformation, or you read it from the metadata.
I’ve managed to recreate my workflow in snappy, and it works great, but I am still having trouble with said boundaries. Could you point me the way to calculate bounding box for multiple S2 images, please? I didn’t manage to find it under the link you provided.