added conopy script proxy

This commit is contained in:
2026-06-24 09:37:09 +03:00
parent 6355f8afd1
commit ac33e8fb28
3 changed files with 86 additions and 0 deletions
+11
View File
@@ -90,6 +90,17 @@ Or download manually into `data/landcover` and `data/canopy`. If the canopy tile
index is unavailable, pass a newline-separated list of COG URLs with
`scripts/bootstrap_canopy.py --urls-file urls.txt --output-dir data/canopy`.
If direct download is blocked, use a SOCKS5 proxy (`pip install PySocks`):
```bash
python scripts/bootstrap_canopy.py \
--bbox 27.3,58.4,35.8,61.4 \
--output-dir data/canopy \
--proxy socks5://user:pass@host:port
```
The same URL can be passed via `CANOPY_PROXY` env var instead of `--proxy`.
The `/api/v1/landcover/path` endpoint samples all `.tif`/`.tiff` files under
`LANDCOVER_PATH` recursively. Canopy data is optional; when it is missing,
`canopy_height_m` is returned as `null`.