OpenJPEG and no such child: Granule errors

Hi cpyywhite,

There is already a version 2.10 available. It is available here: Sen2Cor – STEP (esa.int)

Using BEAM-DIMAP as output format is not working.
Sen2Cor is an external tool and does not use the SNAP functionality. SNAP is only providing a way to invoke the tool via a graphical user interface. Sen2Cor writes its own format. It is like the SAFE format.

This issue has been reported already multiple times:
Search results for ‘AttributeError: no such child: Granule’ - STEP Forum (esa.int)

For the latest version 2.10.1 there seems to be an issue in the source code, respectively there is a library missing. At least the following threads are indicating this

It seems that it works in some cases and in others not. Otherwise, there would have been more reports.

I think the sen2cor teams need to have a look at it.

In the meantime, cppywhite, you can try to call sen2cor directly from the command line. This removes the tool wrapper and thereby one source of possible errors.