How do you create the file variable?
I think it is a string, right?
That’s the reason why no java method can be found. When specifying the format, the file needs to be Java file object.
Do it like:
ProductIO.readProduct(File(file), "SENTINEL-2-MSI-10M");
I think there is now specific- UTM-format for the 10m resolution.
But doing it like this will give you only the 10m bands.
Probably the best way to prepare the data is to read in the data in multi-size resolution format and then doing the resample to 10m.
Here I show how to do it.
The call to GPF.getDefaultInstance().getOperatorSpiRegistry().loadOperatorSpis()
, which Andreas mentioned
is not necessary any more, since SNAP version 5.0.