Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Demand profile validation

Checks how well demand profiles match measured reality during peak weeks and cold spells. For each historical year, every method rebuilds that year's profile from only its weather, calendar and annual total, and is compared with the measured data (leave-one-year-out).

What you need locally

  • Python 3.12 (on Windows via the py launcher) and Git
  • The input data files — not in the repo; get them from the shared folder

Setup (once)

py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -r requirements.lock
python -m pip install -e . --no-deps

requirements.lock pins the exact package versions, so everyone gets the same environment. Optional check: python -m pytest -q (all tests should pass).

Input

Put the files in data/raw/. File names and settings are in config.yaml.

File Format Notes
ENAGAD.csv JRC ENaGaD daily gas demand, as downloaded Measured demand, NL, GWh per gas day. Carrier heat uses column DIS (distribution grid, residential + commercial); carrier gas_total uses TOT (all gas). Gas day D runs 06:00 to 06:00 the next day (local time).
Profielen-*aardgas-*.zip Official Dutch standard gas profiles, zips as downloaded Reference method NEDU: category weights under nedu.weights (default G1A 0.75, G2A 0.25; add GXX once its volume is known).
Warmteprofiel *.xlsx WPG export: time, Ruimteverwarming_W, Tapwater_W (hourly, local time) Not used at the moment (see the backup section in docs/results.md).
uurgeg_<station>_*.txt / .zip KNMI hourly export (uurgegevens, the .txt or .zip as downloaded) with T, FH, FF, Q Averaged to gas days automatically. List the files under weather.path. weather.stations: nedu uses the 6 official TAC stations and weights (260, 290, 380, 235, 280, 310), renormalised over the stations present. TAC is computed per station, then weighted. Cover up to 1 January after the last year.
electricity.csv (optional) timestamp_utc,value Hourly, UTC, e.g. 2018-02-28T23:00:00Z,12345. Test bench only.

Years with less than 90% data are skipped and listed in the output.

Run

.\.venv\Scripts\Activate.ps1          # in each new terminal
python -m src.run_loyo --config config.yaml --carrier heat gas_total

Use --carrier electricity for the test bench.

Output

Written to results/<carrier>/:

File Content
tables/summary.csv One row per method: peak-week, top-1%, annual-mean, nRMSE and cold-spell errors in %; mean, worst and coldest year. Ready for the Result slide.
figures/fig1_peak_week.png Measured (black) vs. each method in the coldest year's peak week
figures/fig2_metric_bars.png Peak-week and top-1% errors per method
figures/fig3_annual_scatter.png Measured vs. rebuilt, coldest year
figures/fig4_loyo.png Peak-week error per year
figures/fig5_external_<year>.png Per WPG year: measured vs. A* and the models, full year and peak week
tables/summary_external_years.csv Like summary.csv, but only the WPG years, so A* is compared like-for-like
metrics.json All numbers, data coverage and included/excluded years

More

Data sources, methods, metrics, limitations and the synthetic demo: docs/details.md. Results so far: docs/results.md. Standard gas profiles vs learning, full method and numbers: docs/technical_reference.md; presentation (open in a browser): docs/presentation/standard_profiles_vs_learning.html, technical appendix: docs/presentation/standard_profiles_vs_learning_appendix.html.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages