-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ba3d33
commit 49a9ee1
Showing
1 changed file
with
21 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Docker commands | ||
This directory holds Dockerfiles to create containers for each component of the datastream. Below are example commands to utilize these containers individually. | ||
|
||
# Subsetting (hfsubset) | ||
``` | ||
docker build /ngen-datastream/docker/hfsubsetter –t hfsubsetter –no-cache | ||
docker run -it --rm -v /path/to/your-directory:/mounted_dir hfsubsetter ./hfsubset -o ./mounted_dir/catchment-101subset.gpkg -r "v20" -t comid "101" | ||
``` | ||
|
||
# ForcingProcessor | ||
``` | ||
docker build /ngen-datastream/docker/forcingprocessor -t forcingprocessor --no-cache | ||
docker run -it --rm -v /ngen-datastream:/mounted_dir forcingprocessor python /ngen-datastream/forcingprocessor/src/forcingprocessor/forcingprocessor.py /mounted_dir/forcingprocessor/configs/conf_docker.json | ||
``` | ||
Note that both the filenamelist.txt and weights.json file must be generated first and paths properly set in the config. | ||
|
||
# Validator | ||
``` | ||
docker build /ngen-datastream/docker/validator -t validator --no-cache | ||
docker run -it --rm -v /ngen-datastream:/mounted_dir validator python /ngen-cal/python/run_validator.py --data_dir /mounted_dir/data/standard_run | ||
``` |