marmot.plottingmodules.capacity_factor.CapacityFactor#
- class CapacityFactor(Zones: List[str], Scenarios: List[str], AGG_BY: str, ordered_gen: List[str], marmot_solutions_folder: pathlib.Path, gen_categories: marmot.plottingmodules.plotutils.plot_data_helper.GenCategories = GenCategories(vre=[], pv=[], re=[], thermal=[]), color_list: list = ['#396AB1', '#CC2529', '#3E9651', '#ff7f00', '#6B4C9A', '#922428', '#cab2d6', '#6a3d9a', '#fb9a99', '#b15928'], **kwargs)[source]#
Bases:
marmot.plottingmodules.plotutils.plot_data_helper.PlotDataStoreAndProcessor
Generator capacity factor plots.
The capacity_factor.py module contain methods that are related to the capacity factor of generators.
CapacityFactor inherits from the PlotDataStoreAndProcessor class to assist in creating figures.
- Parameters
Zones (List[str]) – List of regions/zones to plot.
Scenarios (List[str]) – List of scenarios to plot.
AGG_BY (str) – Informs region type to aggregate by when creating plots.
ordered_gen (List[str]) – Ordered list of generator technologies to plot, order defines the generator technology position in stacked bar and area plots.
marmot_solutions_folder (Path) – Directory containing Marmot solution outputs.
gen_categories (GenCategories) – Instance of GenCategories class, groups generator technologies into defined categories. Deafults to GenCategories.
color_list (list, optional) – List of colors to apply to non-gen plots. Defaults to ColorList().colors.
Methods
avg_output_when_committed
([...])Creates barplots of the percentage average generation output when committed by technology type.
cf
([start_date_range, end_date_range, ...])Creates barplots of generator capacity factors by technology type.
time_at_min_gen
([start_date_range, ...])Creates barplots of generator percentage time at min-gen by technology type.
- avg_output_when_committed(start_date_range: Optional[str] = None, end_date_range: Optional[str] = None, scenario_groupby: str = 'Scenario', **_)[source]#
Creates barplots of the percentage average generation output when committed by technology type.
Each scenario is plotted by a different colored grouped bar.
- Parameters
start_date_range (str, optional) – Defines a start date at which to represent data from. Defaults to None.
end_date_range (str, optional) – Defines a end date at which to represent data to. Defaults to None.
scenario_groupby (str, optional) –
Specifies whether to group data by Scenario or Year-Sceanrio. If grouping by Year-Sceanrio the year will be identified from the timestamp and appeneded to the sceanrio name. This is useful when plotting data which covers multiple years such as ReEDS. Defaults to Scenario.
New in version 0.10.0.
- Returns
dictionary containing the created plot and its data table.
- Return type
- cf(start_date_range: Optional[str] = None, end_date_range: Optional[str] = None, scenario_groupby: str = 'Scenario', **_)[source]#
Creates barplots of generator capacity factors by technology type.
Each scenario is plotted by a different colored grouped bar.
- Parameters
start_date_range (str, optional) – Defines a start date at which to represent data from. Defaults to None.
end_date_range (str, optional) – Defines a end date at which to represent data to. Defaults to None.
scenario_groupby (str, optional) –
Specifies whether to group data by Scenario or Year-Sceanrio. If grouping by Year-Sceanrio the year will be identified from the timestamp and appeneded to the sceanrio name. This is useful when plotting data which covers multiple years such as ReEDS. Defaults to Scenario.
New in version 0.10.0.
- Returns
dictionary containing the created plot and its data table.
- Return type
- time_at_min_gen(start_date_range: Optional[str] = None, end_date_range: Optional[str] = None, scenario_groupby: str = 'Scenario', **_)[source]#
Creates barplots of generator percentage time at min-gen by technology type.
Each scenario is plotted by a different colored grouped bar.
- Parameters
start_date_range (str, optional) – Defines a start date at which to represent data from. Defaults to None.
end_date_range (str, optional) – Defines a end date at which to represent data to. Defaults to None.
scenario_groupby (str, optional) –
Specifies whether to group data by Scenario or Year-Sceanrio. If grouping by Year-Sceanrio the year will be identified from the timestamp and appeneded to the sceanrio name. This is useful when plotting data which covers multiple years such as ReEDS. Defaults to Scenario.
New in version 0.10.0.
- Returns
dictionary containing the created plot and its data table.
- Return type