This commit is contained in:
Felix Delattre 2026-06-10 14:47:06 +02:00
parent e3e14027fc
commit 17f2d1d659
3 changed files with 5 additions and 4 deletions

View file

@ -11,7 +11,7 @@ Outputs (``data/``):
- ``sentinel_data/{year}/{sitename}/prepared/s3/`` S3 composite GeoTIFFs
- ``sentinel_data/{year}/{sitename}/data.json`` run summary
Requires ``CDSE_USER`` / ``CDSE_PASSWORD`` (``uv sync`` installs efast).
Requires ``CDSE_USER`` / ``CDSE_PASSWORD`` in ``../.env`` (workspace root; ``uv sync`` installs efast).
CLI:
@ -108,6 +108,7 @@ S3_COLLECTION = "SENTINEL3_SYN_L2_SYN"
DATA_DIR = Path("data")
DEFAULT_YEAR = 2025
WORKSPACE_ROOT = Path(__file__).resolve().parent.parent
# ---------------------------------------------------------------------------
@ -116,7 +117,7 @@ DEFAULT_YEAR = 2025
def _cdse_credentials() -> dict[str, str | None]:
load_dotenv()
load_dotenv(WORKSPACE_ROOT / ".env")
return {
"username": os.getenv("CDSE_USER"),
"password": os.getenv("CDSE_PASSWORD"),

View file

@ -46,7 +46,7 @@ Run any script as `uv run python <script>.py …`. Python version is pinned in `
- `CDSE_USER` — Copernicus Data Space username
- `CDSE_PASSWORD` — Copernicus Data Space password
Required for step 3 S3 download (CDSE OpenEO). Step 3 S2 download uses AWS Earth Search (no auth).
Set in `../.env` at the workspace root (not under `processing/`). Required for step 3 S3 download (CDSE OpenEO). Step 3 S2 download uses AWS Earth Search (no auth).
---

View file

@ -32,7 +32,7 @@ uv run python 4-fusion.py --evaluation-year 2025 --site innsbruck
uv run python 5-metrics.py --evaluation-year 2025 --site innsbruck
```
Step 3 S3 uses CDSE OpenEO (`SENTINEL3_SYN_L2_SYN`); S2 uses AWS Earth Search COG range reads (no auth).
Step 3 S3 uses CDSE OpenEO (`SENTINEL3_SYN_L2_SYN`); S2 uses AWS Earth Search COG range reads (no auth). CDSE credentials live in `../.env` at the workspace root (`CDSE_USER`, `CDSE_PASSWORD`).
---