mirror of
https://github.com/dataforcanada/d4c-datapkg-orthoimagery.git
synced 2026-06-13 14:10:53 +02:00
Update download script for Vancouver 2022 orthoimagery
This commit is contained in:
-21
@@ -48,24 +48,3 @@ duckdb -noheader -csv -c \
|
||||
> "${URL_FILE}"
|
||||
|
||||
echo " URL list written to: ${URL_FILE}"
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Step 3 — Create the data input directory
|
||||
# ---------------------------------------------------------------------------
|
||||
echo "==> Step 3: Creating data input directory..."
|
||||
mkdir -p "${DATA_INPUT_DIR}"
|
||||
# Resolve to an absolute path to avoid any relative-path surprises
|
||||
DATA_INPUT_DIR="$(cd "${DATA_INPUT_DIR}" && pwd)"
|
||||
echo " Directory ready: ${DATA_INPUT_DIR}"
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Step 4 — Download all images into the data input directory
|
||||
# ---------------------------------------------------------------------------
|
||||
echo "==> Step 4: Downloading images with aria2c..."
|
||||
aria2c \
|
||||
-i "${URL_FILE}" \
|
||||
-j 12 \
|
||||
-x 4 \
|
||||
-d "${DATA_INPUT_DIR}"
|
||||
|
||||
echo "==> Done. All files downloaded to: ${DATA_INPUT_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user