Hi,
Is there anyone who has tried to build a Docker image for sen2cor?
I want to build a docker-image for sen2cor. This becomes easy to port it to other machines.
I have tried and I am getting errors.
I have created docker for sen2cor. It is building successfully when testing I get the message;
usage: L2A_Process [-h] [--resolution {10,20,60}] [--sc_only] [--profile] directory
Sentinel-2 Level 2A Prototype Processor (Sen2Cor). Version: 2.0.6, created:
2015.12.02, supporting Level-1C product version: 13.
positional arguments:
directory Directory where the Level-1C input files are located
optional arguments:
-h, --help show this help message and exit
--resolution {10,20,60}
Target resolution, must be 10, 20 or 60 [m]
--sc_only Performs only the scene classification at 60m
resolution
--profile Profiles the processor's performance
However, when running I get the message below:
Traceback (most recent call last):
File "/opt/conda/bin/L2A_Process", line 9, in
load_entry_point('sen2cor==2.0.6', 'console_scripts', 'L2A_Process')()
File "/opt/conda/lib/python2.7/site-packages/sen2cor-2.0.6-py2.7.egg/sen2cor/L2A_Process.py", line 237, in main
processor = L2A_Process(directory)
File "/opt/conda/lib/python2.7/site-packages/sen2cor-2.0.6-py2.7.egg/sen2cor/L2A_Process.py", line 21, in init
self.config = L2AConfig(workdir)
File "/opt/conda/lib/python2.7/site-packages/sen2cor-2.0.6-py2.7.egg/sen2cor/L2A_Config.py", line 50, in init
with open(self._processingEstimationFn, 'a') as configFile:
IOError: [Errno 2] No such file or directory: '/sen2cor/cfg/.estimation'
done
Does anyone know what I could be missing in my Dockerfile or docker-compose file?
Thanks