added conopy script proxy
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user