Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.64 KB

README.md

File metadata and controls

45 lines (36 loc) · 1.64 KB

CLI Test scripts

Scripts to test local and dockerized version of the ice floe tracker CLI.

To run the tests using the local version of the Ice Floe Tracker CLI, first:

source ./test-IFTPipeline.jl-cli.sh

Then run the appropriate function with the dataset you would like to test. Preprocessing:

preprocess_lopez input_data/ne-greenland.20220913.terra.250m/
preprocess_buckley input_data/ne-greenland.20220913.terra.250m/

For tracking (and preprocessing), you need to pass all the source data directories you'd like to process:

# `track` uses dependency injection to select the preprocessing pipeline
PREPROCESS=preprocess_lopez track input_data/ne-greenland.2022091{3,4}.terra.250m/  

# `track_original` and `track_buckley` are wrappers around `track`
track_original input_data/ne-greenland.2022091{3,4}.terra.250m/
track_buckley input_data/ne-greenland.2022091{3,4}.terra.250m/

To run the tests using a dockerized version of the Ice Floe Tracker CLI, call:

IFT="docker run -v `pwd`:/app -w /app brownccv/icefloetracker-julia" <function name> ...

... where brownccv/icefloetracker-julia can be replaced with any local or remote tagged version of the ice floe tracker image.

For example:

IFT="docker run -v `pwd`:/app -w /app brownccv/icefloetracker-julia" track_buckley input_data/ne-greenland.2022091{3,4}.terra.250m/

Or with Apptainer:

IFT="apptainer run brownccv/icefloetracker-julia:pr-198" preprocess_lopez input_data/ne-greenland.20220913.terra.250m/

or

IFT="apptainer run `pwd`/../runtime/image/iftp-pr-198.simg" preprocess_lopez input_data/ne-greenland.20220913.terra.250m/