Running the step
Goal
Run the command line tool in a Python virtual environment.
Dependencies
This step depends on the execution of the stage-and-cog.cwl
workflow that stages a Sentinel-2 Level-1C from the CDSE and converts/resamples its assets to COG.
Lab
This step has a dedicated lab available at /workspace/inference-eoap/practice-labs/Application steps/02 - Inference.ipynb
Step 1 - Configure the workspace
The results produced will be available in the local folder /workspace/inference-eoap/runs
terminal | |
---|---|
1 2 3 4 |
|
Step 2 - Create the Python virtual environment
The required Python modules are installed using pip
:
terminal | |
---|---|
1 2 3 |
|
Step 3 - Run the inference
The command line tool is invoked with:
terminal | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Step 4 - Clean-up
The Python virtual environment is no longer needed.
terminal | |
---|---|
1 2 |
|
Expected outcome
The folder /workspace/inference-eoap/runs
contains:
runs
├── S2A_T33TVM_20240125T100359_L1C-classification
│ ├── S2A_T33TVM_20240125T100359_L1C-classification.json
│ └── classification.tif
├── catalog.json
├── results.json
└── ydmns4od
├── S2A_T33TVM_20240125T100359_L1C
│ ├── S2A_T33TVM_20240125T100359_L1C.json
│ ├── blue.tif
│ ├── cirrus.tif
│ ├── coastal.tif
│ ├── green.tif
│ ├── nir.tif
│ ├── nir08.tif
│ ├── nir09.tif
│ ├── red.tif
│ ├── rededge1.tif
│ ├── rededge2.tif
│ ├── rededge3.tif
│ ├── swir16.tif
│ └── swir22.tif
└── catalog.json
3 directories, 19 files