Docker image with OTB 7.2.0 and python

Hello!

Just to inform you that there’s a new docker image with OTB 7.2.0 and python 3.7 here: https://github.com/Terradue/docker-orfeotoolbox

Feel free to provide feedback or comments

Fabrice

Hi,

Is there any way I can launch an otbcli command, e.g. otbcli_ReadImageInfo -in /home/image.tif, as a “one off” processing thing like docker run --rm ? If so where would I map my volume in the container ?

Thank you!

P.S. Orfeo images in DockerHub are very old.

Hello!

Sorry for the latency. I’d do something like:

docker run --rm -it -v $PWD:/data terradue/otb-7.2.0:latest otbcli_ReadImageInfo -in /data/swir22.tif
2021-03-22 10:47:08 (INFO) ReadImageInfo: Default RAM limit for OTB is 256 MB
2021-03-22 10:47:08 (INFO) ReadImageInfo: GDAL maximum cache size is 789 MB
2021-03-22 10:47:08 (INFO) ReadImageInfo: OTB will use at most 16 threads
2021-03-22 10:47:08 (INFO) ReadImageInfo: 
Image general information:
	Number of bands : 1
	Data type : short
	No data flags : Not found
	Start index :  [0,0]
	Size :  [7691,7831]
	Origin :  [420300,4.2645e+06]
	Spacing :  [30,-30]
	Estimated ground spacing (in meters): [29.9421,30.0683]

I hope this helps

I’ve updated the README accordingly

Fabrice

1 Like