Skip to content

EOEPCA/app-snuggs

Repository files navigation

s-expression for EO product band math

Development

cd app-s-expression

Create the Python environment with mamba (faster) or conda (slower):

mamba env create -f environment.yml

Activate the Python environment with:

conda activate env_app_snuggs

Build the Python project

To build and install the project locally:

python setup.py install

Test the CLI with:

s-expression --help

That returns:

$ s-expression --help
Usage: s-expression [OPTIONS]

  Applies s expressions to EO acquisitions

Options:
  -i, --input_reference PATH  Input product reference  [required]
  -s, --s-expression TEXT     s expression  [required]
  -b, --cbn TEXT              Common band name  [required]
  --help                      Show this message and exit.

Build the container

docker build . -t snuggs

Execution

cwltool --parallel app-package.cwl#s-expression params.yml

Releases

Releases are published in https://github.com/EOEPCA/app-snuggs/releases