This extractor processes binary stereo images using metadata and outputs demosaicked JPG and TIFF images.
Input
Output
The Dockerfile included in this directory can be used to launch this extractor in a container.
Building the Docker image
docker build -f Dockerfile -t terra-ext-demosaic .
Running the image locally
docker run \
-p 5672 -p 9000 --add-host="localhost:{LOCAL_IP}" \
-e RABBITMQ_URI=amqp://{RMQ_USER}:{RMQ_PASSWORD}@localhost:5672/%2f \
-e RABBITMQ_EXCHANGE=clowder \
-e REGISTRATION_ENDPOINTS=http://localhost:9000/clowder/api/extractors?key={SECRET_KEY} \
terra-ext-demosaic
Note that by default RabbitMQ will not allow "guest:guest" access to non-local addresses, which includes Docker. You may need to create an additional local RabbitMQ user for testing.
Running the image remotely
docker run \
-e RABBITMQ_URI=amqp://{RMQ_USER}:{RMQ_PASSWORD}@rabbitmq.ncsa.illinois.edu/clowder \
-e RABBITMQ_EXCHANGE=terra \
-e REGISTRATION_ENDPOINTS=http://terraref.ncsa.illinosi.edu/clowder//api/extractors?key={SECRET_KEY} \
terra-ext-demosaic
All the Python scripts syntactically support Python 2.7 and above. Please make sure that the Python in the running environment is in appropriate version.
All the Python scripts also rely on the third-party library including: PIL, scipy, numpy and osgeo.
docker pull clowder/extractors-terra-stereo-rgb:latest