arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Developing Clowder Extractors

hashtag
Developing the Computing Pipeline with Clowder Extractors

The TERRA REF computing pipeline and data management is managed by Clowder. The pipeline consists of 'extractors' that take a file or other piece of information and generate new files or information. In this way, each extractor is a step in the pipeline.

An extractor 'wraps' an algorithm in code that watches for files that it can convert into new data products and phenotypes. These extractors wait silently alongside the Clowder interface and databases. Extractors can be configured to wait for specific file types and automatically execute operations on those files to process them and extract metadata.

If you want to add an algorithm to the TERRAREF pipeline, or use the Clowder software to manage your own pipeline, extractors provide a way of automating and scaling the algorithms that you have. provides instructions, including:

  1. Setting up a pipeline development environment on your own computer.

  2. Using the ) (currently in beta testing)

  3. Using the Clowder API

hashtag
TERRA-REF Extractor Resources

hashtag
terrautils

To make working with the TERRA-REF pipeline as easy as possible, the Python library was written. By importing this library in an extractor script, developers can ensure that code duplication is minimized and standard practices are used for common tasks such as GeoTIFF creation and georeferencing. It also provides modules for managing metadata, downloading and uploading, and BETYdb/geostreams API wrapping.

Modules include:

  • BETYdb API wrapper

  • General extractor tools e.g. for creating metadata JSON objects and generating folder hierarchies

  • Standard methods for creating output files e.g. images from numpy arrays

hashtag
Science packages

To keep code and algorithms broadly applicable, TERRA-REF is developing a series of science-driven packages to collect methods and algorithms that are generic to an input and output from the pipeline. That is, these packages should not refer to Clowder or extraction pipelines, but instead can be used in applications to manipulate data products. They are organized by sensor.

These packages will also include test suites to verify that any changes are consistent with previous outputs. The test directories can also act as examples on how to instantiate and use the science packages in actual code.

  • stereo RGB camera (stereoTop in rawdata, rgb prefix elsewhere)

  • FLIR infrared camera (flirIrCamera in rawData, ir prefix elsewhere)

  • laser 3D scanner (scanner3DTop in rawData, laser3d elsewhere)

hashtag
Extractor repositories

Extractors can be considered wrapper scripts that call methods in the science packages to do work, but include the necessary components to communicate with TERRA's RabbitMQ message bus to process incoming data as it arrives and upload outputs to Clowder. There should be no science-oriented code in the extractor repos - this code should be implemented in science packages instead so it is easier for future developers to leverage.

Each repository includes extractors in the workflow chain corresponding to the named sensor.

hashtag
Contact:

  • Extractor development and deployment:

  • Development environments:

  • On our

Using the pyClowder to add an analytical or technical component to the pipeline.

GDAL general image tools

  • Geostreams API wrapper

  • InfluxDB logging API wrapper

  • LemnaTec-specific data management methods

  • Getting and cleaning metadata

  • Get file lists

  • Standard sensor information resources

  • Geospatial metadata management

  • On
    The NCSA Extractor Development wikiarrow-up-right
    web development interfacearrow-up-right
    terrautilsarrow-up-right
    betydbarrow-up-right
    extractorsarrow-up-right
    formatsarrow-up-right
    stereo_rgbarrow-up-right
    flir_irarrow-up-right
    scanner_3darrow-up-right
    extractors-stereo-rgbarrow-up-right
    extractors-3dscannerarrow-up-right
    extractors-multispectralarrow-up-right
    Max Burnettearrow-up-right
    Craig Willisarrow-up-right
    Slack Channelarrow-up-right
    pyClowderarrow-up-right
    pyClowderarrow-up-right
    gdalarrow-up-right
    geostreamsarrow-up-right
    influxarrow-up-right
    lemnatecarrow-up-right
    metadataarrow-up-right
    productsarrow-up-right
    sensorsarrow-up-right
    spatialarrow-up-right
    extractors-metadataarrow-up-right
    extractors-hyperspectralarrow-up-right
    extractors-environmentalarrow-up-right
    extractors-lemnatec-indoorarrow-up-right
    GitHubarrow-up-right