more config tables and fixed table widths

This commit is contained in:
Fabian Neumann 2019-08-07 17:58:28 +02:00
parent 7a4e9f22d4
commit 6aa6b20e26
8 changed files with 92 additions and 65 deletions

19
doc/_static/theme_overrides.css vendored Normal file
View File

@ -0,0 +1,19 @@
/* override table width restrictions */
@media screen and (min-width: 767px) {
.wy-table-responsive table td {
/* !important prevents the common CSS stylesheets from overriding
this as on RTD they are loaded after this stylesheet */
white-space: normal !important;
/* background: #eeeeee !important; */
}
.wy-table-responsive {
max-width: 100%;
overflow: visible !important;
}
.wy-nav-content {
max-width: 910px !important;
}
}

View File

@ -155,13 +155,13 @@ html_theme_options = {
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['_static']
html_static_path = ['_static']
# html_context = {
# 'css_files': [
# '_static/theme_overrides.css', # override wide tables in RTD theme
# ],
# }
html_context = {
'css_files': [
'_static/theme_overrides.css', # override wide tables in RTD theme
],
}
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied

View File

@ -1,13 +1,13 @@
,Unit,Values,Description
nprocesses,--,{'E'},TODO
nprocesses,--,int,"Number of parallel processes in cutout preparation"
cutouts,--,E,TODO
-- europe-2013-era5,--,E,TODO
-- -- module,--,E,TODO
-- -- xs,--,E,TODO
-- -- ys,--,E,TODO
-- -- years,--,E,TODO
-- europe-2013-sarah,--,E,TODO
-- -- module,--,E,TODO
-- -- xs,--,E,TODO
-- -- ys,--,E,TODO
-- -- years,--,E,TODO
-- europe-2013-era5,--,,"Directory to write cutout data to."
-- -- module,--,"Must be 'era5'","Source of the reanalysis weather dataset. `ERA5 <https://www.ecmwf.int/en/forecasts/datasets/reanalysis-datasets/era5>`_"
-- -- xs,°,"Float interval within [-180, 180]","Range of longitudes to download weather data for."
-- -- ys,°,"Float interval within [-90, 90]","Range of latitudes to download weather data for."
-- -- years,--,"Integer interval within [1979,2018]","Range of years to download weather data for."
-- europe-2013-sarah,--,,"Directory to write cutout data to."
-- -- module,--,"Must be 'sarah'","Source of the surface solar radiation dataset. `SARAH-2 <https://wui.cmsaf.eu/safira/action/viewDoiDetails?acronym=SARAH_V002>`_"
-- -- xs,°,"Float interval within [-180, 180]","Range of longitudes to download weather data for."
-- -- ys,°,"Float interval within [-90, 90]","Range of latitudes to download weather data for."
-- -- years,--,"Integer interval within [1983,2015]","Range of years to download weather data for."
1 Unit Values Description
2 nprocesses -- {'E'} int TODO Number of parallel processes in cutout preparation
3 cutouts -- E TODO
4 -- europe-2013-era5 -- E TODO Directory to write cutout data to.
5 -- -- module -- E Must be 'era5' TODO Source of the reanalysis weather dataset. `ERA5 <https://www.ecmwf.int/en/forecasts/datasets/reanalysis-datasets/era5>`_
6 -- -- xs -- ° E Float interval within [-180, 180] TODO Range of longitudes to download weather data for.
7 -- -- ys -- ° E Float interval within [-90, 90] TODO Range of latitudes to download weather data for.
8 -- -- years -- E Integer interval within [1979,2018] TODO Range of years to download weather data for.
9 -- europe-2013-sarah -- E TODO Directory to write cutout data to.
10 -- -- module -- E Must be 'sarah' TODO Source of the surface solar radiation dataset. `SARAH-2 <https://wui.cmsaf.eu/safira/action/viewDoiDetails?acronym=SARAH_V002>`_
11 -- -- xs -- ° E Float interval within [-180, 180] TODO Range of longitudes to download weather data for.
12 -- -- ys -- ° E Float interval within [-90, 90] TODO Range of latitudes to download weather data for.
13 -- -- years -- E Integer interval within [1983,2015] TODO Range of years to download weather data for.

View File

@ -1,10 +1,10 @@
,Unit,Values,Description
voltages,--,{'E'},TODO
co2limit,--,E,TODO
extendable_carriers,--,E,TODO
-- Generator,--,E,TODO
-- StorageUnit,--,E,TODO
max_hours,--,E,TODO
-- battery,--,E,TODO
-- H2,--,E,TODO
conventional_carriers,--,E,TODO
voltages,kV,"Any subset of {220., 300., 380.}","Voltage levels to consider when"
co2limit,:math:`t_{CO_2-eq}/a`,float,"Cap on total annual system carbon dioxide emissions"
extendable_carriers,,,
-- Generator,--,"Any subset of {'OCGT','CCGT'}","Places extendable conventional power plants (OCGT and/or CCGT) where gas power plants are located today without capacity limits."
-- StorageUnit,--,"Any subset of {'battery','H2'}","Places extendable storage units (battery and/or hydrogen) at every node/bus without capacity limits."
max_hours,,,
-- battery,h,float,"Maximum state of charge capacity of the battery in terms of hours at full output capacity ``p_nom``. Cf. `PyPSA documentation <https://pypsa.readthedocs.io/en/latest/components.html#storage-unit>`_."
-- H2,h,float,"Maximum state of charge capacity of the hydrogen storage in terms of hours at full output capacity ``p_nom``. Cf. `PyPSA documentation <https://pypsa.readthedocs.io/en/latest/components.html#storage-unit>`_."
conventional_carriers,--,"Any subset of {nuclear, oil, OCGT, CCGT, coal, lignite, geothermal, biomass}","List of conventional power plants to include in the model from ``resources/powerplants.csv``."

1 Unit Values Description
2 voltages -- kV {'E'} Any subset of {220., 300., 380.} TODO Voltage levels to consider when
3 co2limit -- :math:`t_{CO_2-eq}/a` E float TODO Cap on total annual system carbon dioxide emissions
4 extendable_carriers -- E TODO
5 -- Generator -- E Any subset of {'OCGT','CCGT'} TODO Places extendable conventional power plants (OCGT and/or CCGT) where gas power plants are located today without capacity limits.
6 -- StorageUnit -- E Any subset of {'battery','H2'} TODO Places extendable storage units (battery and/or hydrogen) at every node/bus without capacity limits.
7 max_hours -- E TODO
8 -- battery -- h E float TODO Maximum state of charge capacity of the battery in terms of hours at full output capacity ``p_nom``. Cf. `PyPSA documentation <https://pypsa.readthedocs.io/en/latest/components.html#storage-unit>`_.
9 -- H2 -- h E float TODO Maximum state of charge capacity of the hydrogen storage in terms of hours at full output capacity ``p_nom``. Cf. `PyPSA documentation <https://pypsa.readthedocs.io/en/latest/components.html#storage-unit>`_.
10 conventional_carriers -- E Any subset of {nuclear, oil, OCGT, CCGT, coal, lignite, geothermal, biomass} TODO List of conventional power plants to include in the model from ``resources/powerplants.csv``.

View File

@ -1,13 +1,13 @@
,Unit,Values,Description
cutout,--,{'E'},TODO
resource,--,E,TODO
-- method,--,E,TODO
-- turbine,--,E,TODO
capacity_per_sqkm,--,E,TODO
corine,--,E,TODO
-- grid_codes,--,E,TODO
-- distance,--,E,TODO
-- distance_grid_codes,--,E,TODO
cutout,--,"Must be 'europe-2013-era5'","Specifies the directory where the relevant weather data ist stored."
resource,,,
-- method,--,"Must be 'wind'","A superordinate technology type."
-- turbine,--,"One of turbine types included in `atlite <https://github.com/PyPSA/atlite/tree/master/atlite/resources/windturbine>`_","Specifies the turbine type and its characteristic power curve."
capacity_per_sqkm,MW/km2,float,"Allowable density of wind turbine placement."
corine,,,
-- grid_codes,--,"Any subset of the `CORINE Land Cover code list <http://www.eea.europa.eu/data-and-maps/data/corine-land-cover-2006-raster-1/corine-land-cover-classes-and/clc_legend.csv/at_download/file>`_",TODO
-- distance,m,float,
-- distance_grid_codes,--,"Any subset of the `CORINE Land Cover code list <http://www.eea.europa.eu/data-and-maps/data/corine-land-cover-2006-raster-1/corine-land-cover-classes-and/clc_legend.csv/at_download/file>`_",TODO
natura,--,E,TODO
potential,--,E,TODO
clip_p_max_pu,--,E,TODO
1 Unit Values Description
2 cutout -- {'E'} Must be 'europe-2013-era5' TODO Specifies the directory where the relevant weather data ist stored.
3 resource -- E TODO
4 -- method -- E Must be 'wind' TODO A superordinate technology type.
5 -- turbine -- E One of turbine types included in `atlite <https://github.com/PyPSA/atlite/tree/master/atlite/resources/windturbine>`_ TODO Specifies the turbine type and its characteristic power curve.
6 capacity_per_sqkm -- MW/km2 E float TODO Allowable density of wind turbine placement.
7 corine -- E TODO
8 -- grid_codes -- E Any subset of the `CORINE Land Cover code list <http://www.eea.europa.eu/data-and-maps/data/corine-land-cover-2006-raster-1/corine-land-cover-classes-and/clc_legend.csv/at_download/file>`_ TODO
9 -- distance -- m E float TODO
10 -- distance_grid_codes -- E Any subset of the `CORINE Land Cover code list <http://www.eea.europa.eu/data-and-maps/data/corine-land-cover-2006-raster-1/corine-land-cover-classes-and/clc_legend.csv/at_download/file>`_ TODO
11 natura -- E TODO
12 potential -- E TODO
13 clip_p_max_pu -- E TODO

View File

@ -1,4 +1,4 @@
,Unit,Values,Description
start,--,{'E'},TODO
end,--,E,TODO
closed,--,E,TODO
start,--,"str or datetime-like; e.g. YYYY-MM-DD","Left bound of date range"
end,--,"str or datetime-like; e.g. YYYY-MM-DD","Right bound of date range"
closed,--,"One of {None, left, right}","Make the time interval closed to the ``left``, ``right``, or both sides ``None``."
1 Unit Values Description
2 start -- {'E'} str or datetime-like; e.g. YYYY-MM-DD TODO Left bound of date range
3 end -- E str or datetime-like; e.g. YYYY-MM-DD TODO Right bound of date range
4 closed -- E One of {None, ‘left’, ‘right’} TODO Make the time interval closed to the ``left``, ``right``, or both sides ``None``.

View File

@ -1,8 +1,8 @@
,Unit,Values,Description
version,--,{'E'},TODO
logging_level,--,E,TODO
summary_dir,--,E,TODO
countries,--,E,TODO
enable,--,E,TODO
-- powerplantmatching,--,{'E'},TODO
-- prepare_links_p_nom,--,E,TODO
version,--,0.1,"Version of PyPSA-Eur"
logging_level,--,"Any of {'INFO', 'WARNING', 'ERROR'}","Restrict console outputs to all infos, warning or errors only"
summary_dir,--,"e.g. 'results'","Directory into which results are written."
countries,--,"Subset of {'AL', 'AT', 'BA', 'BE', 'BG', 'CH', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HR', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'ME', 'MK', 'NL', 'NO', 'PL', 'PT', 'RO', 'RS', 'SE', 'SI', 'SK'}","European countries defined by their `Two-letter country codes (ISO 3166-1) <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>`_ which should be included in the energy system model."
enable,,,
-- powerplantmatching,bool,"{true, false}","Switch to retrieve currently existing conventional power plant capacities matched from multiple sources by using `powerplantmatching <https://www.github.com/FRESNA/powerplantmatching>`_."
-- prepare_links_p_nom,bool,"{true, false}","Switch to retrieve current HVDC projects from `Wikipedia <https://en.wikipedia.org/wiki/List_of_HVDC_projects>`_"
1 Unit Values Description
2 version -- {'E'} 0.1 TODO Version of PyPSA-Eur
3 logging_level -- E Any of {'INFO', 'WARNING', 'ERROR'} TODO Restrict console outputs to all infos, warning or errors only
4 summary_dir -- E e.g. 'results' TODO Directory into which results are written.
5 countries -- E Subset of {'AL', 'AT', 'BA', 'BE', 'BG', 'CH', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HR', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'ME', 'MK', 'NL', 'NO', 'PL', 'PT', 'RO', 'RS', 'SE', 'SI', 'SK'} TODO European countries defined by their `Two-letter country codes (ISO 3166-1) <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>`_ which should be included in the energy system model.
6 enable -- E TODO
7 -- powerplantmatching -- bool {'E'} {true, false} TODO Switch to retrieve currently existing conventional power plant capacities matched from multiple sources by using `powerplantmatching <https://www.github.com/FRESNA/powerplantmatching>`_.
8 -- prepare_links_p_nom -- bool E {true, false} TODO Switch to retrieve current HVDC projects from `Wikipedia <https://en.wikipedia.org/wiki/List_of_HVDC_projects>`_

View File

@ -2,8 +2,10 @@
Configuration
##########################################
Single-level entries
====================
by changing the default configuration in ``config.yaml``.
Top-level configuration
=======================
.. literalinclude:: ../config.yaml
:language: yaml
@ -11,9 +13,10 @@ Single-level entries
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/toplevel.csv
Wildcards and ``scenario``
==========================
@ -23,7 +26,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/scenario.csv
@ -31,13 +34,15 @@ Wildcards and ``scenario``
``snapshots``
=============
Arguments to `pandas.date_range <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.date_range.html>`_
.. literalinclude:: ../config.yaml
:language: yaml
:lines: 17-21
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/snapshots.csv
@ -50,9 +55,12 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/electricity.csv
.. warning::
Carriers in ``conventional_carriers`` must not also be in ``extendable_carriers``.
``atlite``
=============
@ -62,7 +70,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/atlite.csv
``renewable``
@ -73,7 +81,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/onwind.csv
``offwind-ac``
@ -81,7 +89,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/offwind-ac.csv
``offwind-dc``
@ -89,7 +97,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/offwind-dc.csv
``solar``
@ -97,7 +105,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/solar.csv
``hydro``
@ -105,7 +113,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/hydro.csv
``lines``
@ -113,7 +121,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/lines.csv
``links``
@ -121,7 +129,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/links.csv
``transformers``
@ -129,7 +137,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/transformers.csv
``load``
@ -137,7 +145,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/load.csv
``costs``
@ -145,7 +153,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/costs.csv
``solving``
@ -156,7 +164,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/solving-options.csv
``solver``
@ -164,7 +172,7 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/solving-solver.csv
``plotting``
@ -172,5 +180,5 @@ Wildcards and ``scenario``
.. csv-table::
:header-rows: 1
:align: left
:widths: 25,7,22,30
:file: configtables/plotting.csv