My goal is batch processing Sentinel-2 granules so that eventually I end up with
- subset images
- containing the RGB information (i.e. bands 4,3,2)
- in UTM projection
- with a pixel spacing of 10x10 m.
However, this doesn’t really seem to work as the Graph Builder keeps on telling me that the “Source product contains rasters of different sizes and can not be processed. Please consider resampling it so that all rasters have the same size.”
The awkward thing is that I even used the BandSelect module and chose bands 4,3 and 2, which all have 10m pixel spacing - but the error message remains. I also added a Resampling module, but then I get new error messages, e.g. when using both the Resampling module and an export to GeoTiff: “Product Writer is unable to write this product as GeoTiff: Cannot write multisize products. Consider resampling the products first”.
Long story short: Is there any simple and bug-free way to achieve what I want to do? I figure that Sentinel-2 granules are already UTM-projected, so there is no need for any reprojection. But both for RGB image creation and subsetting, I need a solution. I would even consider adding it to my Python/Snappy-based download routine - if anybody could point me into the right direction how to extract bands and subsets from downloaded products using the API…