Files
cable-latency-survey/penguins/fetch.sh
T

10 lines
634 B
Bash
Executable File

#!/usr/bin/env bash
# Fetch the SCAR Retrospective Analysis of Antarctic Tracking (Standardised) Data, v1.5 (CC BY 4.0;
# GBIF doi:10.15468/uzmdpm), the input of build.py, into raw/, and check it against the copy used.
set -euo pipefail
cd "$(dirname "$0")"
mkdir -p raw
curl -sSL -o raw/dwca-scar_raatd_trackingdata-v1.5.zip 'https://ipt.biodiversity.aq/archive.do?r=scar_raatd_trackingdata&v=1.5'
(cd raw && sha256sum -c --quiet raatd.sha256 && echo "RAATD v1.5 identical to the copy used") || echo "note: the archive differs from the copy used (raw/raatd.sha256)"
unzip -o -q raw/dwca-scar_raatd_trackingdata-v1.5.zip -d raw/raatd