Giter Site home page Giter Site logo

agpipeline / transformer-cleanmetadata Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 139 KB

Moving to https:/github.com/uacic. Cleans Gantry generated metadata (formerly extractors-metadata/cleaner in TERRA REF)

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 16.87% Python 83.13%
gantry terra-ref

transformer-cleanmetadata's Introduction

Transformer: Metadata Cleaner

Cleans LemnaTec Metadata to allow easier processing by other transformers

Overview

This transformer is different than most in that it's specialized for cleaning the Gantry metadata. This requires the transformer to also have its own transformer_class.Transformer instance for special parameter handling.

Parameters

There are two additional parameters for this transformer: sensor, and userid.

The sensor parameter is required and refers to the gantry sensor the metadata is associated with.

The userid parameter is optional and allows additional identification information to be stored with the cleaned metadata.

Sample Docker Command line

Below is a sample command line that shows how the metadata cleaner Docker image could be run. An explanation of the command line options used follows. Be sure to read up on the docker run command line for more information.

docker run --rm --mount "src=/home/test,target=/mnt,type=bind" -e "BETYDB_URL=https://terraref.ncsa.illinois.edu/bety/" -e "BETYDB_KEY=<key value>" agpipeline/cleanmetadata:2.0 --working_space "/mnt" --metadata "/mnt/08f445ef-b8f9-421a-acf1-8b8c206c1bb8_metadata.json" "stereoRGB"

This example command line assumes the source files are located in the /home/test folder of the local machine. The name of the image to run is agpipeline/cleanmetadata:2.0.

We are using the same folder for the source metadata and the cleaned metadata. By using multiple --mount options, the source and output files can be separated.

Docker commands
Everything between 'docker' and the name of the image are docker commands.

  • run indicates we want to run an image
  • --rm automatically delete the image instance after it's run
  • --mount "src=/home/test,target=/mnt,type=bind" mounts the /home/test folder to the /mnt folder of the running image
  • -e "BETYDB_URL=https://terraref.ncsa.illinois.edu/bety/" the URL to the BETYdb instance to fetch experiment, and other data, from
  • -e "BETYDB_KEY=<key value>" the key associated with the BETYdb URL (replace <key value> with value of your key)

We mount the /home/test folder to the running image to make available the file to the software in the image.

Image's commands
The command line parameters after the image name are passed to the software inside the image. Note that the paths provided are relative to the running image (see the --mount option specified above).

  • --working_space "/mnt" specifies the folder to use as a workspace
  • --metadata "/mnt/08f445ef-b8f9-421a-acf1-8b8c206c1bb8_metadata.json" is the name of the source metadata to be cleaned
  • "stereoRGB" is the name of the sensor the metadata is associated with

transformer-cleanmetadata's People

Contributors

caicai89- avatar chris-schnaufer avatar dlebauer avatar max-zilla avatar weiqin61 avatar yanliu-chn avatar

Watchers

 avatar  avatar  avatar

Forkers

uacic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.