Public | Automated Build

Last pushed: 21 hours ago
Short Description
TERRA-REF EnvironmentLogger .json extractor for Clowder.
Full Description

Environmental Logger JSON to NetCDF converter

This extractor processes environmental logger stream data .JSON files into a netCDF.

Input

  • Evaluation is triggered whenever a file is added to a dataset
  • Checks whether the file is an _environmentlogger.json file

Output

  • The dataset containing the .JSON file will get a corresponding .nc netCDF file

Docker

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-envlog2netcdf .

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-envlog2netcdf

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-envlog2netcdf
Docker Pull Command
Owner
terraref

Comments (0)