Scripts and utilities for creating observation files for TSMP-PDAF data assimilation runs.
Each script in this repository reads observations from an external data source and writes NetCDF files in the format expected by TSMP-PDAF.
PDAF_observation-file-generator/
├── mkcrns/ # Observation files from COSMOS-Europe CRNS data
│ ├── create_crns_obs.py # Main script: CRNS data → TSMP-PDAF NetCDF files
│ └── cosmos_europe/ # COSMOS-Europe dataset download and parsing
│ ├── download_cosmos_europe.py # Download CRNS dataset from TERENO
│ └── parse_crns_data.py # Parser: COSMOS-Europe CSV → pandas DataFrame
├── mkoldummy/ # Dummy observation files for open-loop / spin-up runs
│ └── create_dummy_obs.py # Single placeholder obs file (no_obs=1) for OL runs
└── utils/ # Shared utilities
└── nc_attributes.py # Sets standard provenance attributes on NetCDF files
Install the required Python packages (see pyproject.toml):
pip install -e .mkcrns/— CRNS soil moisture observations from COSMOS-Europemkoldummy/— Dummy observation files for open-loop simulationsutils/— Shared utilities (NetCDF provenance attributes)