Skip to content

Commit

Permalink
crop
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed Oct 31, 2023
1 parent ac08d3d commit 0a6669c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/python-env/crop.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,43 @@ Run the `crop` step in a Python virtual environment.

### Step 1 - Configure the workspace

```bash linenums="1" hl_lines="9-12 49-53" title="terminal"
The results produced will be available in the local folder `/workspace/runs`

```bash linenums="1" hl_lines="2-4" title="terminal"
--8<--
scripts/setup.sh
--8<--
```

### Step 2 - Create the Python virtual environment

```bash linenums="1" hl_lines="9-12 49-53" title="terminal"
The required Python modules are installed using pip:

```bash linenums="1" hl_lines="3" title="terminal"
--8<--
scripts/crop_env.sh
--8<--
```

### Step 3 - Crop the green band

```bash linenums="1" hl_lines="9-12 49-53" title="terminal"
```bash linenums="1" hl_lines="8-11" title="terminal"
--8<--
scripts/crop_green.sh
--8<--
```

### Step 4 - Crop the NIR band

```bash linenums="1" hl_lines="9-12 49-53" title="terminal"
```bash linenums="1" hl_lines="8-11" title="terminal"
--8<--
scripts/crop_nir.sh
--8<--
```

### Step 5 - Clean-up

```bash linenums="1" hl_lines="9-12 49-53" title="terminal"
```bash linenums="1" title="terminal"
--8<--
scripts/crop_deactivate.sh
--8<--
Expand Down

0 comments on commit 0a6669c

Please sign in to comment.