NDVI Processing from command line


Is there way to generate NDVI images via command line with 3 bands (for ex: B4, B5 and B8) using sen2cor or some other software?


the graph processing tool of SNAP does that. You don’t need sen2cor.

gpt NDVIop


Thanks! but there is little documentation online about this command.

Can you give an example of usage, using the command or the xml graph file or both??

Thanks again

  1. Navigate in the folder where your product is
  2. Enter the command

e.g. for Sentinel-2:
gpt NDVIop -Ssource=MTD_MSIL1C.xml -t NDVI.tif