Skip to content

Commit 8c35637

Browse files
authored
Update documentation (#186)
* doc: update config cited in structure.rst * doc: update the docs/structure.rst * docu: update documentation * code: update release notes * docu: update documentation * docu: update docu * docu: include outputs/US * docu: include outputs/US - 2
1 parent d695540 commit 8c35637

3 files changed

Lines changed: 50 additions & 22 deletions

File tree

docs/release_notes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ Upcoming Release
2424

2525
* Align `snakemake` version and the related `mock_snakemake` to PyPSA-Eur (https://github.com/PyPSA/technology-data/pull/177)
2626

27+
* Include further unit tests for compile_cost_assumptions_usa.py (https://github.com/PyPSA/technology-data/pull/182)
28+
29+
* Updates the documentation with compile_cost_assumptions_usa.py (https://github.com/PyPSA/technology-data/pull/186)
30+
2731
`v0.11.0 <https://github.com/PyPSA/technology-data/releases/tag/v0.11.0>`__ (24th January 2025)
2832
=======================================================================================
2933

docs/structure.rst

Lines changed: 45 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,61 @@ Structure of the repository
1111

1212
This repository has the following structure:
1313

14-
- **inputs**: input data in format .csv or .xlsx
14+
- **inputs**: input data in format .csv, .xlsx or .parquet
1515

1616
- **outputs**: technology data saved as ``costs_{year}.csv`` format for defined years. In the output ``costs_{year}.csv`` are specified
1717

18-
* technology (e.g. 'onwind')
19-
* parameter (e.g. FOM)
20-
* value (e.g. 1.18)
21-
* unit (e.g. %/year)
22-
* source (e.g. DEA, excel_file_name.xlsx)
23-
* further description (specific assumptions, sheet name if data from a multi-sheet Excel file)
18+
* technology (e.g. 'onwind')
19+
* parameter (e.g. FOM)
20+
* value (e.g. 1.18)
21+
* unit (e.g. %/year)
22+
* source (e.g. DEA, excel_file_name.xlsx)
23+
* further description (specific assumptions, sheet name if data from a multi-sheet Excel file)
24+
* currency_year (year used for adjusting economic values to reflect current purchasing power)
25+
26+
- **outputs/US**: US-specific technology data saved as ``US/costs_{year}.csv`` format for defined years. In the outputs ``US/costs_{year}.csv`` are specified
27+
28+
* technology (e.g. 'onwind')
29+
* parameter (e.g. FOM)
30+
* value (e.g. 1.18)
31+
* unit (e.g. %/year)
32+
* source (e.g. DEA, excel_file_name.xlsx)
33+
* further description (specific assumptions, sheet name if data from a multi-sheet Excel file)
34+
* currency_year (year used for adjusting economic values to reflect current purchasing power)
35+
* financial_case (financial assumptions for the definition of the cost of capital)
36+
* scenario (technology innovation scenario)
2437

2538
- **config**:
2639

2740
.. literalinclude:: ../config.yaml
2841
:language: yaml
29-
:lines: 4-24
30-
31-
the following parameters can be set in the ``config.yaml``
32-
33-
* years : numpy array of all the years of which an output costs csv should be created
34-
* rate_inflation : inflation rate (currently: rate_inflation=0.02)
35-
* solar_utility_from_vartiaien : Bool (True/False) if solar utility data is taken from DEA or Vartiaien
36-
* solar_rooftop_from_etip : Bool (True/False) if solar rooftop data is taken from DEA or ETIP
37-
* h2_from_budischak : Bool (True/False) if fuel cell and electrolyzer efficiencies are taken from DEA or Budischak
38-
* offwind_no_gridcosts : Bool (True/False) if offshore wind grid connection costs should be removed (they are calculated seperately in PyPSA-Eur)
42+
:lines: 4-40
43+
44+
The following parameters can be set in the ``config.yaml``
45+
46+
* years : numpy array of all the years of which an output costs csv should be created
47+
* nrel_atb_input_years : list of years that define the source files
48+
* nrel_atb_columns_to_keep : list of columns to use from the NREL/ATB source files
49+
* nrel_atb_core_metric_parameter_to_keep : list of parameters to use from the NREL/ATB source files
50+
* nrel_atb_technology_to_remove : list of technologies that should be excluded from NREL/ATB
51+
* nrel_atb_source_link : source url for the NREL/ATB data used
52+
* expectation : tech data uncertainty, possible options [None, "optimist", "pessimist"]
53+
* eur_year : year for EUR outputs
54+
* solar_utility_from_vartiaien : Bool (True/False) if solar utility data is taken from DEA or Vartiaien
55+
* solar_rooftop_from_etip : Bool (True/False) if solar rooftop data is taken from DEA or ETIP
56+
* h2_from_budischak : Bool (True/False) add fuel cell/electrolysis efficiencies from Budischak
57+
* ewg_home_battery: Bool (True/False) add home battery data derived from DEA data and EWG study
58+
* add_data: Bool (True/False) add storage data mainly from PNNL
59+
* approx_beyond_2030: ["geometric_series"] or ["same_as_2030"]
60+
* offwind_no_gridcosts : Bool (True/False) if offshore wind grid connection costs should be removed (they are calculated seperately in PyPSA-Eur)
61+
* salinity : estimated in PSU (Practical Salinity Unit) = kg/m^3
62+
* ndigits : number of significant digits
3963

4064
- **scripts** :
41-
42-
* :mod:`compile_cost_assumptions.py` converts input data from multiple sources to ``cost_{year}.csv`` for chosen year. Interpolates data for missing years or calculates the costs at a certain year based on the inflation rate. Technology data from the `Danish Energy Agency <https://github.com/PyPSA/technology-data>`_ are preferred. If data are missing from all sources, these are taken from the old PyPSA cost assumptions (with a printed warning).
43-
* :mod:`convert_pdf_fraunhofer_to_dataframe.py` converts table from Fraunhofer ISE report in pdf to csv format for input data. Script can be modified to convert other .pdf sources to .csv format
44-
* :mod:`retrieve_data_from_dea.py` downloads up-to-date technology data from DEA website and saves it in the **input** folder. Optional, also retrieves the documentation of the data into the folder **docu**
65+
* :mod:`compile_cost_assumptions.py` converts input data from multiple sources to ``cost_{year}.csv`` for chosen year. Interpolates data for missing years or calculates the costs at a certain year based on the inflation rate. Technology data from the `Danish Energy Agency <https://github.com/PyPSA/technology-data>`_ are preferred. If data are missing from all sources, these are taken from the old PyPSA cost assumptions (with a printed warning).
66+
* :mod:`compile_cost_assumptions_usa.py` converts input data from NREL/ATB to ``US/cost_{year}.csv`` for chosen year. It starts from the cost assumptions files produced by `compile_cost_assumptions.py`. All technology-parameter pairs present in the NREL/ATB input data are updated. Those not present in NREL/ATB are left untouched.
67+
* :mod:`convert_pdf_fraunhofer_to_dataframe.py` converts table from Fraunhofer ISE report in pdf to csv format for input data. Script can be modified to convert other .pdf sources to .csv format
68+
* :mod:`retrieve_data_from_dea.py` downloads up-to-date technology data from DEA website and saves it in the **input** folder. Optional, also retrieves the documentation of the data into the folder **docu**
4569

4670
- **docu**: reports, paper, additional information about the input data, format .pdf
4771

scripts/compile_cost_assumptions_usa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def pre_process_atb_input_file(
714714
list_core_metric_parameter_to_keep: list
715715
values of the core_metric_paramater that are relevant
716716
tech_to_remove: list
717-
technologies names that are should be excluded from NREL/ATB
717+
technologies names that should be excluded from NREL/ATB
718718
719719
Returns
720720
-------

0 commit comments

Comments
 (0)