Running the step
Goal
Run the stac
step in a Python virtual environment.
Step 1 - Configure the workspace
The results produced will be available in the local folder /workspace/runs
terminal | |
---|---|
1 2 3 4 |
|
source /workspace/app-package-training-bids23/scripts/setup.sh
Step 2 - Create the Python virtual environment
The required Python modules are installed using pip
:
terminal | |
---|---|
1 2 3 |
|
source ${WORKSPACE}/scripts/stac_env.sh
Step 3 - Generate the STAC Catalog
The command line tool is invoked to produce a STAC Catalog:
terminal | |
---|---|
1 2 3 4 5 6 7 8 9 |
|
source ${WORKSPACE}/scripts/stac.sh
Step 4 - Clean-up
The Python virtual environment is no longer needed.
terminal | |
---|---|
1 2 |
|
source ${WORKSPACE}/scripts/stac_deactivate.sh
Expected outcome
The folder /workspace/runs
contains:
(base) jovyan@coder-mrossi:~/runs$ tree .
.
├── S2B_10TFK_20210713_0_L2A
│ ├── S2B_10TFK_20210713_0_L2A.json
│ └── otsu.tif
├── catalog.json
├── crop_green.tif
├── crop_nir.tif
├── norm_diff.tif
└── otsu.tif
1 directory, 7 files