1

I want to process Sentinel 2A images using another tool that is not SNAP. The later is very slow and crashes each time. I was recommended the Orfeo toolbox. I installed it on QGIS. I have 58 S2A images and I want to process them in a time-efficient way and not one by one. SNAP offers that through the graph builder and the batch processing. I want to know if there is such a thing with the Orfeo toolbox.

1

If you want a graphical editor to build your graph, you can use the QGIS processing toolbox modeler (which can make use of any QGIS provider: OTB, GDAL, GRASS, ...). However, for performance and stability I would strongly recommend the python API of the Orfeo ToolBox, especially for processing large amount of S2 images (answer below).

Graph builder

The Python API of the Orfeo ToolBox enables to chain multiple OTB applications together. It is quite easy to use, even for beginners in python. Its main advantage is that everything is processed without temporary file, and with limited memory footprint (the streaming mechanism is used internally, enabling the processing of very large images, piece by piece, propagating automatically the processed regions between the applications composing the pipeline). Everything is done under the hood, you just have to focus on building your pipeline with the Python API: it's like a graph builder from python code.

Batch processing

You can call OTB applications in a python loop, and the job is done!

3
  • Thanks @Rémi for your answer. One more thing, can the OTB be installed via pip on google colab ? or Jupyter Notebook?
    – Rim Sleimi
    Jul 10 '20 at 16:03
  • @RimSleimi for now, I only know that a conda is available (anaconda.org/orfeotoolbox/otb) but I don't know for pip at this time.
    – Rémi
    Jul 15 '20 at 6:55
  • Ok thanks, I'll check it out.
    – Rim Sleimi
    Jul 15 '20 at 7:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.