This repository was archived by the owner on Nov 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging develop into Master as v1.1 (#10)
* Updated README.md * Common extractor - Initial Cut (#1) * Adding common image code * Minor changes, pylint-ing * Optimizing Dockerfile * Added/updated READMEs * Added some more configuration * Added method * Improvements to documentation and some fixes (#2) * Adding common image code * Minor changes, pylint-ing * Optimizing Dockerfile * Added/updated READMEs * Added some more configuration * Added method * pylint checks * Debugging * Updated README * Added args to instance * Added contribtors * Updating readme and pylint * Updating readme and pylint (#4) * Adding geo referenced image support (#6) * Added RGB plot base code for plot level template (#7) * Adding geo referenced image support * Adding rgb plot level base code * Removing common source due to incompatability * Basic RGB plot level transformer * Removed references to Drone Pipeline * Fixing timestamp issue (#8)
- Loading branch information
1 parent
5873e6c
commit 5e9f29f
Showing
10 changed files
with
1,030 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,6 @@ venv.bak/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# pycharm | ||
.idea |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM agpipeline/base-image:1.0 | ||
FROM agpipeline/base-image:1.1 | ||
LABEL maintainer="Chris Schnaufer <[email protected]>" | ||
|
||
# Build environment values | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM agpipeline/gantry-base-image:latest | ||
LABEL maintainer="Chris Schnaufer <[email protected]>" | ||
|
||
COPY requirements.txt packages.txt /home/extractor/ | ||
|
||
USER root | ||
|
||
RUN [ -s /home/extractor/packages.txt ] && \ | ||
(echo 'Installing packages' && \ | ||
apt-get update && \ | ||
cat /home/extractor/packages.txt | xargs apt-get install -y --no-install-recommends && \ | ||
rm /home/extractor/packages.txt && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/*) || \ | ||
(echo 'No packages to install' && \ | ||
rm /home/extractor/packages.txt) | ||
|
||
RUN [ -s /home/extractor/requirements.txt ] && \ | ||
(echo "Install python modules" && \ | ||
python -m pip install -U --no-cache-dir pip && \ | ||
python -m pip install --no-cache-dir setuptools && \ | ||
python -m pip install --no-cache-dir -r /home/extractor/requirements.txt && \ | ||
rm /home/extractor/requirements.txt) || \ | ||
(echo "No python modules to install" && \ | ||
rm /home/extractor/requirements.txt) | ||
|
||
USER extractor | ||
|
||
COPY *.py /home/extractor/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Transformer: base RGB Plot-level | ||
|
||
Provides the base image, or code, for plot-level RGB transformers for the UA Gantry Makeflow environment. | ||
|
||
The motivation behind this code is to significantly reduce the overhead in knowledge and work needed to add scientific algorithms to the pipeline. | ||
|
||
## What's provided | ||
The transformer creates output CSV files in single process, or multi-process environments. | ||
If the output CSV files don't exist, they are created and initialized (the CSV header is written identifying the fields). | ||
If the output CSV files already exist, rows are appended to the files. | ||
No checks are made to determine if a particular entry already exists in the CSV files, data is just appended. | ||
|
||
By default a generic CSV file is produced, as well as CSV files compatible with [TERRA REF Geostreams](https://docs.terraref.org/user-manual/data-products/environmental-conditions) and with [BETYDB](https://www.betydb.org/). | ||
|
||
### Changing default CSV behavior | ||
Algorithm writers have the ability to override this default behavior with TERRA REF Geostreams and BETYdb through the definition of variables in their implementation file. | ||
* WRITE_GEOSTREAMS_CSV - if defined at the global level and set to `False` will suppress writing TERRA REF Geostreams CSV data for an algorithm. | ||
* WRITE_BETYDB_CSV - if defined at the global level and set to `False` will suppress writing BETYdb CSV data for an algorithm. | ||
|
||
In case people executing an algorithm wish to generate BETYdb or TERRA REF Geostreams CSV files, there are command line arguments that override the just mentioned global variable values to force writing. | ||
Of course, these command line arguments are not necessary if the files are being written by default. | ||
|
||
### Output path | ||
The `--csv_path` parameter is key to getting multiple instances of RGB plot-level transformers writing to the same file. | ||
For each instance of the same transformer that's run (either single- or multi-process), using the same path indicates that the produced data should be appended to the CSV files (dependent upon runtime environments). | ||
Of course, if the file doesn't already exist it's first created and the CSV header written before data is written. | ||
|
||
If writing all the data to the same file isn't possible, or not desirable, this parameter can be modified to allow each instance to write its own file (including the CSV header). | ||
|
||
Note: if using Docker images this path is relative to the code running inside the container. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""Contains transformer configuration information | ||
""" | ||
|
||
# The version number of the transformer | ||
TRANSFORMER_VERSION = '1.0' | ||
|
||
# The transformer description | ||
TRANSFORMER_DESCRIPTION = 'Base for plot-level RGB-based algorithm transformers' | ||
|
||
# Short name of the transformer | ||
TRANSFORMER_NAME = 'rgb-plot-level-base' | ||
|
||
# The sensor associated with the transformer | ||
TRANSFORMER_SENSOR = 'stereoTop' | ||
|
||
# The transformer type (eg: 'rgbmask', 'plotclipper') | ||
TRANSFORMER_TYPE = 'rgb.algorithm.base' | ||
|
||
# The name of the author of the extractor | ||
AUTHOR_NAME = 'Chris Schnaufer' | ||
|
||
# The email of the author of the extractor | ||
AUTHOR_EMAIL = '[email protected]' | ||
|
||
# Contributors to this transformer | ||
CONTRUBUTORS = [] | ||
|
||
# Repository URI of where the source code lives | ||
REPOSITORY = 'https://github.com/AgPipeline/ua-gantry-environment' |
Empty file.
Empty file.
Oops, something went wrong.