Graph for batch NDVI calculations

Hi,

I am trying to make a graph to batch process Sentinel-2 data by first using sen2cor to perform atmospheric corrections and then calculating NDVI using band math since the operator is missing from the graph builder. However, the band math tab will not let me edit the expression because it doesn’t know what the input data is. How can I work around this?

Thank you.

But you can use already processed S2L2A products as input. Then the Band Maths should detect the band names.
For sen2cor you need to split the processing. First do the AC and afterwards you can use the results. This is anyhow meaningful, because sen2cor needs to write its output to disk