reV.utilities.SupplyCurveField

class SupplyCurveField(value)[source]

Bases: FieldEnum

An enumerated map to supply curve summary/meta keys.

This is a collection of known supply curve fields that reV outputs across aggregation, supply curve, and bespoke outputs.

Not all of these columns are guaranteed in every supply-curve like output (e.g. “convex_hull_area” is a bespoke-only output).

The docstrings for each field are used as a description when exporting metadata information about supply curve columns. See TBA for details.

Methods

map_to(other)

Return a rename map from this enum to another.

map_from(other)

Map from a dictionary of name / member pairs to this enum.

encode([encoding, errors])

Encode the string using the codec registered for encoding.

replace(old, new[, count])

Return a copy with all occurrences of substring old replaced by new.

split([sep, maxsplit])

Return a list of the substrings in the string, using sep as the separator string.

rsplit([sep, maxsplit])

Return a list of the substrings in the string, using sep as the separator string.

join(iterable, /)

Concatenate any number of strings.

capitalize()

Return a capitalized version of the string.

casefold()

Return a version of the string suitable for caseless comparisons.

title()

Return a version of the string where each word is titlecased.

center(width[, fillchar])

Return a centered string of length width.

count(sub[, start[, end]])

Return the number of non-overlapping occurrences of substring sub in string S[start:end].

expandtabs([tabsize])

Return a copy where all tab characters are expanded using spaces.

find(sub[, start[, end]])

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].

partition(sep, /)

Partition the string into three parts using the given separator.

index(sub[, start[, end]])

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].

ljust(width[, fillchar])

Return a left-justified string of length width.

lower()

Return a copy of the string converted to lowercase.

lstrip([chars])

Return a copy of the string with leading whitespace removed.

rfind(sub[, start[, end]])

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].

rindex(sub[, start[, end]])

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].

rjust(width[, fillchar])

Return a right-justified string of length width.

rstrip([chars])

Return a copy of the string with trailing whitespace removed.

rpartition(sep, /)

Partition the string into three parts using the given separator.

splitlines([keepends])

Return a list of the lines in the string, breaking at line boundaries.

strip([chars])

Return a copy of the string with leading and trailing whitespace removed.

swapcase()

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)

Replace each character in the string using the given translation table.

upper()

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]])

Return True if S starts with the specified prefix, False otherwise.

endswith(suffix[, start[, end]])

Return True if S ends with the specified suffix, False otherwise.

removeprefix(prefix, /)

Return a str with the given prefix string removed if present.

removesuffix(suffix, /)

Return a str with the given suffix string removed if present.

isascii()

Return True if all characters in the string are ASCII, False otherwise.

islower()

Return True if the string is a lowercase string, False otherwise.

isupper()

Return True if the string is an uppercase string, False otherwise.

istitle()

Return True if the string is a title-cased string, False otherwise.

isspace()

Return True if the string is a whitespace string, False otherwise.

isdecimal()

Return True if the string is a decimal string, False otherwise.

isdigit()

Return True if the string is a digit string, False otherwise.

isnumeric()

Return True if the string is a numeric string, False otherwise.

isalpha()

Return True if the string is an alphabetic string, False otherwise.

isalnum()

Return True if the string is an alpha-numeric string, False otherwise.

isidentifier()

Return True if the string is a valid Python identifier, False otherwise.

isprintable()

Return True if the string is printable, False otherwise.

zfill(width, /)

Pad a numeric string with zeros on the left, to fill a field of the given width.

format(*args, **kwargs)

Return a formatted version of S, using substitutions from args and kwargs.

format_map(mapping)

Return a formatted version of S, using substitutions from mapping.

maketrans

Return a translation table usable for str.translate().

map_from_legacy()

Map of legacy names to current values.

Attributes

description

Description of enum member pulled from docstring

units

Units of the supply curve column, or "N/A" if not applicable

SC_GID

Supply curve GID (Specific to this particular supply curve output)

LATITUDE

Centroid latitude of the supply curve grid-cell

LONGITUDE

Centroid longitude of the supply curve grid-cell

COUNTRY

Country of the supply curve grid-cell

STATE

State of the supply curve grid-cell

COUNTY

County of the supply curve grid-cell

ELEVATION

Mean elevation of the supply curve grid-cell

TIMEZONE

Timezone of supply curve grid-cell, expressed as an hourly offset from UTC

SC_POINT_GID

Unique ID that can be used to match supply curve grid-cells across reV supply curves at the same resolution

SC_ROW_IND

Supply curve grid-cell row ID (Invariant across supply curves)

SC_COL_IND

Supply curve grid-cell column ID (Invariant across supply curves)

SOURCE_GIDS

RES_GIDS

List of resource GID's mapped to this supply curve grid-cells

GEN_GIDS

List of generation GID's mapped to this supply curve point

GID_COUNTS

Number of high-resolution cells corresponding to each generation GID for this supply curve point

N_GIDS

Total number of not fully excluded pixels associated with the available resource/generation gids

ZONE_ID

Zone ID of the supply curve grid-cell, if applicable.

MEAN_RES

Mean resource (e.g. wind speed, gha, temperature, etc.) across the supply curve grid-cell.

MEAN_CF_AC

Mean capacity factor (AC) across supply curve grid-cell

MEAN_CF_DC

Mean capacity factor (DC) across supply curve grid-cell

WAKE_LOSSES

Mean wake losses across supply curve grid-cell

MEAN_LCOE

Mean power plant levelized cost of energy across supply curve grid-cell

CAPACITY_AC_MW

Capacity of system based on area_sq_km * AC capacity density assumption

CAPACITY_DC_MW

Capacity of system based on area_sq_km * DC capacity density assumption

OFFSHORE

Flag value indicating if the supply curve grid-cell is offshore (1) or not (0)

AREA_SQ_KM

Developable area after spatial exclusions applied

MEAN_FRICTION

MEAN_LCOE_FRICTION

RAW_LCOE

Mean power plant levelized cost of energy across supply curve grid-cell without any multipliers or economies of scale applied

EOS_MULT

Capital cost economies of Scale (EOS) multiplier value (defaults to 1 if no EOS curve was specified)

FIXED_EOS_MULT

Fixed operating cost economies of Scale (EOS) multiplier value (defaults to 1 if no EOS curve was specified)

VAR_EOS_MULT

Variable operating cost economies of Scale (EOS) multiplier value (defaults to 1 if no EOS curve was specified)

REG_MULT

Regional capital cost multiplier to capture taxes, labor, land lease regional differences

SC_POINT_ANNUAL_ENERGY_MWH

Total annual energy for supply curve grid-cell (computed using "capacity_ac_mw" and "capacity_factor_ac")

COST_BASE_CC_USD_PER_AC_MW

Included-area weighted capital cost for supply curve grid-cell with no multipliers or economies of scale applied (defaults to None for non-LCOE runs)

COST_SITE_CC_USD_PER_AC_MW

Included-area weighted capital cost for supply curve grid-cell (defaults to None for non-LCOE runs)

COST_BASE_FOC_USD_PER_AC_MW

Included-area weighted fixed operating cost for supply curve grid-cell with no multipliers or economies of scale applied (defaults to None for non-LCOE runs)

COST_SITE_FOC_USD_PER_AC_MW

Included-area weighted fixed operating cost for supply curve grid-cell (defaults to None for non-LCOE runs)

COST_BASE_VOC_USD_PER_AC_MWH

Included-area weighted variable operating cost for supply curve grid-cell with no multipliers or economies of scale applied (defaults to None for non-LCOE runs)

COST_SITE_VOC_USD_PER_AC_MWH

Included-area weighted variable operating cost for supply curve grid-cell (defaults to None for non-LCOE runs)

FIXED_CHARGE_RATE

Fixed charge rate used for LCOE computation (defaults to None for non-LCOE runs)

POSSIBLE_X_COORDS

List of turbine x coordinates considered during layout optimization (in meters relative to grid-cell)

POSSIBLE_Y_COORDS

List of turbine y coordinates considered during layout optimization (in meters relative to grid-cell)

TURBINE_X_COORDS

List of optimized layout turbine x coordinates (in meters relative to grid-cell)

TURBINE_Y_COORDS

List of optimized layout turbine y coordinates (in meters relative to grid-cell)

N_TURBINES

Number of turbines in the optimized layout for this supply curve grid-cell

INCLUDED_AREA

Area available for wind turbine layout optimization

INCLUDED_AREA_CAPACITY_DENSITY

Capacity density of the optimized wind plant layout defined using the area available after removing the exclusions

CONVEX_HULL_AREA

Area of the convex hull of the optimized wind plant layout

CONVEX_HULL_CAPACITY_DENSITY

Capacity density of the optimized wind plant layout defined using the convex hull area of the layout

FULL_CELL_CAPACITY_DENSITY

Capacity density of the optimized wind plant layout defined using the full non-excluded area of the supply curve grid-cell

BESPOKE_AEP

Annual energy production of the optimized wind plant layout computed using wind speed/direction joint probability distribution (as opposed to historical weather data)

BESPOKE_OBJECTIVE

Objective function value of the optimized wind plant layout.

BESPOKE_CAPITAL_COST

Capital cost of the optimized wind plant layout

BESPOKE_FIXED_OPERATING_COST

Annual fixed operating cost of the optimized wind plant layout

BESPOKE_VARIABLE_OPERATING_COST

Variable operating cost of the optimized wind plant layout

BESPOKE_BALANCE_OF_SYSTEM_COST

Balance of system cost of the optimized wind plant layout

TRANS_GID

Transmission connection feature GID

TRANS_TYPE

Transmission connection feature type

TOTAL_LCOE_FRICTION

TRANS_CAPACITY

DIST_SPUR_KM

Distance between the grid-cell centroid and cheapest available electrical substation.

DIST_EXPORT_KM

Length of the offshore export cable

REINFORCEMENT_DIST_KM

Distance between the connected substation and nearest regional load center.

TIE_LINE_COST_PER_MW

Cost of the spur line used to connect the grid-cell centroid with the cheapest available electrical substation

CONNECTION_COST_PER_MW

Substation connection/upgrade/installation cost

EXPORT_COST_PER_MW

Cost of the offshore export cable

REINFORCEMENT_COST_PER_MW

Non-levelized reinforcement transmission capital costs

TOTAL_TRANS_CAP_COST_PER_MW

Non-levelized spur and point-of-interconnection transmission capital costs

LCOT

Levelized cost of transmission.

TOTAL_LCOE

All-in LCOE.

N_PARALLEL_TRANS

Number of parallel transmission lines connecting the grid-cell centroid with the cheapest available electrical substation

POI_LAT

Latitude of the cheapest available electrical substation for the supply curve grid-cell

POI_LON

Longitude of the cheapest available electrical substation for the supply curve grid-cell

REINFORCEMENT_POI_LAT

Latitude of the nearest regional load center for the supply curve grid-cell

REINFORCEMENT_POI_LON

Longitude of the nearest regional load center for the supply curve grid-cell

SC_GID = 'sc_gid'

Supply curve GID (Specific to this particular supply curve output)

LATITUDE = 'latitude'

Centroid latitude of the supply curve grid-cell

LONGITUDE = 'longitude'

Centroid longitude of the supply curve grid-cell

COUNTRY = 'country'

Country of the supply curve grid-cell

STATE = 'state'

State of the supply curve grid-cell

COUNTY = 'county'

County of the supply curve grid-cell

ELEVATION = 'elevation_m'

Mean elevation of the supply curve grid-cell

TIMEZONE = 'timezone'

Timezone of supply curve grid-cell, expressed as an hourly offset from UTC

SC_POINT_GID = 'sc_point_gid'

Unique ID that can be used to match supply curve grid-cells across reV supply curves at the same resolution

SC_ROW_IND = 'sc_row_ind'

Supply curve grid-cell row ID (Invariant across supply curves)

SC_COL_IND = 'sc_col_ind'

Supply curve grid-cell column ID (Invariant across supply curves)

RES_GIDS = 'res_gids'

List of resource GID’s mapped to this supply curve grid-cells

GEN_GIDS = 'gen_gids'

List of generation GID’s mapped to this supply curve point

GID_COUNTS = 'gid_counts'

Number of high-resolution cells corresponding to each generation GID for this supply curve point

N_GIDS = 'n_gids'

Total number of not fully excluded pixels associated with the available resource/generation gids

ZONE_ID = 'zone_id'

Zone ID of the supply curve grid-cell, if applicable. Defaults to 1.

MEAN_RES = 'resource'

Mean resource (e.g. wind speed, gha, temperature, etc.) across the supply curve grid-cell

MEAN_CF_AC = 'capacity_factor_ac'

Mean capacity factor (AC) across supply curve grid-cell

MEAN_CF_DC = 'capacity_factor_dc'

Mean capacity factor (DC) across supply curve grid-cell

WAKE_LOSSES = 'losses_wakes_pct'

Mean wake losses across supply curve grid-cell

MEAN_LCOE = 'lcoe_site_usd_per_mwh'

Mean power plant levelized cost of energy across supply curve grid-cell

CAPACITY_AC_MW = 'capacity_ac_mw'

Capacity of system based on area_sq_km * AC capacity density assumption

CAPACITY_DC_MW = 'capacity_dc_mw'

Capacity of system based on area_sq_km * DC capacity density assumption

OFFSHORE = 'offshore'

Flag value indicating if the supply curve grid-cell is offshore (1) or not (0)

AREA_SQ_KM = 'area_developable_sq_km'

Developable area after spatial exclusions applied

RAW_LCOE = 'lcoe_raw_usd_per_mwh'

Mean power plant levelized cost of energy across supply curve grid-cell without any multipliers or economies of scale applied

EOS_MULT = 'multiplier_cc_eos'

Capital cost economies of Scale (EOS) multiplier value (defaults to 1 if no EOS curve was specified)

FIXED_EOS_MULT = 'multiplier_foc_eos'

Fixed operating cost economies of Scale (EOS) multiplier value (defaults to 1 if no EOS curve was specified)

VAR_EOS_MULT = 'multiplier_voc_eos'

Variable operating cost economies of Scale (EOS) multiplier value (defaults to 1 if no EOS curve was specified)

REG_MULT = 'multiplier_cc_regional'

Regional capital cost multiplier to capture taxes, labor, land lease regional differences

SC_POINT_ANNUAL_ENERGY_MWH = 'annual_energy_site_mwh'

Total annual energy for supply curve grid-cell (computed using “capacity_ac_mw” and “capacity_factor_ac”)

COST_BASE_CC_USD_PER_AC_MW = 'cost_base_cc_usd_per_ac_mw'

Included-area weighted capital cost for supply curve grid-cell with no multipliers or economies of scale applied (defaults to None for non-LCOE runs)

COST_SITE_CC_USD_PER_AC_MW = 'cost_site_cc_usd_per_ac_mw'

Included-area weighted capital cost for supply curve grid-cell (defaults to None for non-LCOE runs)

COST_BASE_FOC_USD_PER_AC_MW = 'cost_base_foc_usd_per_ac_mw'

Included-area weighted fixed operating cost for supply curve grid-cell with no multipliers or economies of scale applied (defaults to None for non-LCOE runs)

COST_SITE_FOC_USD_PER_AC_MW = 'cost_site_foc_usd_per_ac_mw'

Included-area weighted fixed operating cost for supply curve grid-cell (defaults to None for non-LCOE runs)

COST_BASE_VOC_USD_PER_AC_MWH = 'cost_base_voc_usd_per_ac_mwh'

Included-area weighted variable operating cost for supply curve grid-cell with no multipliers or economies of scale applied (defaults to None for non-LCOE runs)

COST_SITE_VOC_USD_PER_AC_MWH = 'cost_site_voc_usd_per_ac_mwh'

Included-area weighted variable operating cost for supply curve grid-cell (defaults to None for non-LCOE runs)

FIXED_CHARGE_RATE = 'fixed_charge_rate'

Fixed charge rate used for LCOE computation (defaults to None for non-LCOE runs)

POSSIBLE_X_COORDS = 'possible_x_coords'

List of turbine x coordinates considered during layout optimization (in meters relative to grid-cell)

POSSIBLE_Y_COORDS = 'possible_y_coords'

List of turbine y coordinates considered during layout optimization (in meters relative to grid-cell)

TURBINE_X_COORDS = 'turbine_x_coords'

List of optimized layout turbine x coordinates (in meters relative to grid-cell)

TURBINE_Y_COORDS = 'turbine_y_coords'

List of optimized layout turbine y coordinates (in meters relative to grid-cell)

N_TURBINES = 'n_turbines'

Number of turbines in the optimized layout for this supply curve grid-cell

INCLUDED_AREA = 'area_included_sq_km'

Area available for wind turbine layout optimization

INCLUDED_AREA_CAPACITY_DENSITY = 'capacity_density_included_area_mw_per_km2'

Capacity density of the optimized wind plant layout defined using the area available after removing the exclusions

CONVEX_HULL_AREA = 'area_convex_hull_sq_km'

Area of the convex hull of the optimized wind plant layout

CONVEX_HULL_CAPACITY_DENSITY = 'capacity_density_convex_hull_mw_per_km2'

Capacity density of the optimized wind plant layout defined using the convex hull area of the layout

FULL_CELL_CAPACITY_DENSITY = 'capacity_density_full_cell_mw_per_km2'

Capacity density of the optimized wind plant layout defined using the full non-excluded area of the supply curve grid-cell

BESPOKE_AEP = 'optimized_plant_aep'

Annual energy production of the optimized wind plant layout computed using wind speed/direction joint probability distribution (as opposed to historical weather data)

BESPOKE_OBJECTIVE = 'optimized_plant_objective'

Objective function value of the optimized wind plant layout. This is typically the LCOE computed using wind speed/direction joint probability distribution (as opposed to historical weather data)

BESPOKE_CAPITAL_COST = 'optimized_plant_capital_cost'

Capital cost of the optimized wind plant layout

BESPOKE_FIXED_OPERATING_COST = 'optimized_plant_fixed_operating_cost'

Annual fixed operating cost of the optimized wind plant layout

BESPOKE_VARIABLE_OPERATING_COST = 'optimized_plant_variable_operating_cost'

Variable operating cost of the optimized wind plant layout

BESPOKE_BALANCE_OF_SYSTEM_COST = 'optimized_plant_balance_of_system_cost'

Balance of system cost of the optimized wind plant layout

TRANS_GID = 'trans_gid'

Transmission connection feature GID

TRANS_TYPE = 'trans_type'

Transmission connection feature type

DIST_SPUR_KM = 'dist_spur_km'

Distance between the grid-cell centroid and cheapest available electrical substation. Used in lcot calculations.

DIST_EXPORT_KM = 'dist_export_km'

Length of the offshore export cable

REINFORCEMENT_DIST_KM = 'dist_reinforcement_km'

Distance between the connected substation and nearest regional load center. Used in lcot calculations.

TIE_LINE_COST_PER_MW = 'cost_spur_usd_per_mw_ac'

Cost of the spur line used to connect the grid-cell centroid with the cheapest available electrical substation

CONNECTION_COST_PER_MW = 'cost_poi_usd_per_mw_ac'

Substation connection/upgrade/installation cost

EXPORT_COST_PER_MW = 'cost_export_usd_per_mw_ac'

Cost of the offshore export cable

REINFORCEMENT_COST_PER_MW = 'cost_reinforcement_usd_per_mw_ac'

Non-levelized reinforcement transmission capital costs

TOTAL_TRANS_CAP_COST_PER_MW = 'cost_total_trans_usd_per_mw_ac'

Non-levelized spur and point-of-interconnection transmission capital costs

LCOT = 'lcot_usd_per_mwh'

Levelized cost of transmission. Includes spur-transmission, point-of-interconnection, and reinforcement costs.

TOTAL_LCOE = 'lcoe_all_in_usd_per_mwh'

All-in LCOE. Includes site-lcoe + lcot

N_PARALLEL_TRANS = 'count_num_parallel_trans'

Number of parallel transmission lines connecting the grid-cell centroid with the cheapest available electrical substation

classmethod map_to(other)

Return a rename map from this enum to another.

Mapping is performed on matching enum names. In other words, if both enums have a ONE attribute, this will be mapped from one enum to another.

Parameters:

other (Enum) – Enum subclass with __members__ attribute.

Returns:

dict – Dictionary mapping matching values from one enum to another.

Examples

>>> class Test1(FieldEnum):
>>>     ONE = "one_x"
>>>     TWO = "two"
>>>
>>> class Test2(Enum):
>>>     ONE = "one_y"
>>>     THREE = "three"
>>>
>>> Test1.map_to(Test2)
{<Test1.ONE: 'one_x'>: <Test2.ONE: 'one_y'>}
classmethod map_from(other)

Map from a dictionary of name / member pairs to this enum.

Parameters:

other (dict) – Dictionary mapping key values (typically old aliases) to enum values. For example, {'sc_gid': 'SC_GID'} would return a dictionary that maps 'sc_gid' to the SC_GID member of this enum.

Returns:

dict – Mapping of input dictionary keys to member values of this enum.

Examples

>>> class Test(FieldEnum):
>>>     ONE = "one_x"
>>>     TWO = "two_y"
>>>
>>> Test.map_from({1: "ONE", 2: "TWO"})
{1: <Test.ONE: 'one_x'>, 2: <Test.TWO: 'two_y'>}
__add__(value, /)

Return self+value.

__mul__(value, /)

Return self*value.

encode(encoding='utf-8', errors='strict')

Encode the string using the codec registered for encoding.

encoding

The encoding in which to encode the string.

errors

The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

replace(old, new, count=-1, /)

Return a copy with all occurrences of substring old replaced by new.

count

Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.

If the optional argument count is given, only the first count occurrences are replaced.

split(sep=None, maxsplit=-1)

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the front of the string and works to the end.

Note, str.split() is mainly useful for data that has been intentionally delimited. With natural text that includes punctuation, consider using the regular expression module.

rsplit(sep=None, maxsplit=-1)

Return a list of the substrings in the string, using sep as the separator string.

sep

The separator used to split the string.

When set to None (the default value), will split on any whitespace character (including n r t f and spaces) and will discard empty strings from the result.

maxsplit

Maximum number of splits. -1 (the default value) means no limit.

Splitting starts at the end of the string and works to the front.

join(iterable, /)

Concatenate any number of strings.

The string whose method is called is inserted in between each given string. The result is returned as a new string.

Example: ‘.’.join([‘ab’, ‘pq’, ‘rs’]) -> ‘ab.pq.rs’

capitalize()

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.

casefold()

Return a version of the string suitable for caseless comparisons.

title()

Return a version of the string where each word is titlecased.

More specifically, words start with uppercased characters and all remaining cased characters have lower case.

center(width, fillchar=' ', /)

Return a centered string of length width.

Padding is done using the specified fill character (default is a space).

count(sub[, start[, end]]) int

Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

expandtabs(tabsize=8)

Return a copy where all tab characters are expanded using spaces.

If tabsize is not given, a tab size of 8 characters is assumed.

find(sub[, start[, end]]) int

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

partition(sep, /)

Partition the string into three parts using the given separator.

This will search for the separator in the string. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing the original string and two empty strings.

index(sub[, start[, end]]) int

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

ljust(width, fillchar=' ', /)

Return a left-justified string of length width.

Padding is done using the specified fill character (default is a space).

lower()

Return a copy of the string converted to lowercase.

lstrip(chars=None, /)

Return a copy of the string with leading whitespace removed.

If chars is given and not None, remove characters in chars instead.

rfind(sub[, start[, end]]) int

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.

rindex(sub[, start[, end]]) int

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Raises ValueError when the substring is not found.

rjust(width, fillchar=' ', /)

Return a right-justified string of length width.

Padding is done using the specified fill character (default is a space).

rstrip(chars=None, /)

Return a copy of the string with trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

rpartition(sep, /)

Partition the string into three parts using the given separator.

This will search for the separator in the string, starting at the end. If the separator is found, returns a 3-tuple containing the part before the separator, the separator itself, and the part after it.

If the separator is not found, returns a 3-tuple containing two empty strings and the original string.

splitlines(keepends=False)

Return a list of the lines in the string, breaking at line boundaries.

Line breaks are not included in the resulting list unless keepends is given and true.

strip(chars=None, /)

Return a copy of the string with leading and trailing whitespace removed.

If chars is given and not None, remove characters in chars instead.

swapcase()

Convert uppercase characters to lowercase and lowercase characters to uppercase.

translate(table, /)

Replace each character in the string using the given translation table.

table

Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via __getitem__, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper()

Return a copy of the string converted to uppercase.

startswith(prefix[, start[, end]]) bool

Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.

endswith(suffix[, start[, end]]) bool

Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.

removeprefix(prefix, /)

Return a str with the given prefix string removed if present.

If the string starts with the prefix string, return string[len(prefix):]. Otherwise, return a copy of the original string.

removesuffix(suffix, /)

Return a str with the given suffix string removed if present.

If the string ends with the suffix string and that suffix is not empty, return string[:-len(suffix)]. Otherwise, return a copy of the original string.

isascii()

Return True if all characters in the string are ASCII, False otherwise.

ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

islower()

Return True if the string is a lowercase string, False otherwise.

A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

isupper()

Return True if the string is an uppercase string, False otherwise.

A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

istitle()

Return True if the string is a title-cased string, False otherwise.

In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

isspace()

Return True if the string is a whitespace string, False otherwise.

A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

isdecimal()

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

isdigit()

Return True if the string is a digit string, False otherwise.

A string is a digit string if all characters in the string are digits and there is at least one character in the string.

isnumeric()

Return True if the string is a numeric string, False otherwise.

A string is numeric if all characters in the string are numeric and there is at least one character in the string.

isalpha()

Return True if the string is an alphabetic string, False otherwise.

A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

isalnum()

Return True if the string is an alpha-numeric string, False otherwise.

A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

isidentifier()

Return True if the string is a valid Python identifier, False otherwise.

Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as “def” or “class”.

isprintable()

Return True if the string is printable, False otherwise.

A string is printable if all of its characters are considered printable in repr() or if it is empty.

zfill(width, /)

Pad a numeric string with zeros on the left, to fill a field of the given width.

The string is never truncated.

format(*args, **kwargs) str

Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces (‘{’ and ‘}’).

format_map(mapping) str

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

static maketrans()

Return a translation table usable for str.translate().

If there is only one argument, it must be a dictionary mapping Unicode ordinals (integers) or characters to Unicode ordinals, strings or None. Character keys will be then converted to ordinals. If there are two arguments, they must be strings of equal length, and in the resulting dictionary, each character in x will be mapped to the character at the same position in y. If there is a third argument, it must be a string, whose characters will be mapped to None in the result.

property description

Description of enum member pulled from docstring

POI_LAT = 'latitude_poi'

Latitude of the cheapest available electrical substation for the supply curve grid-cell

POI_LON = 'longitude_poi'

Longitude of the cheapest available electrical substation for the supply curve grid-cell

REINFORCEMENT_POI_LAT = 'latitude_reinforcement_poi'

Latitude of the nearest regional load center for the supply curve grid-cell

REINFORCEMENT_POI_LON = 'longitude_reinforcement_poi'

Longitude of the nearest regional load center for the supply curve grid-cell

classmethod map_from_legacy()[source]

Map of legacy names to current values.

Returns:

dict – Dictionary that maps legacy supply curve column names to members of this enum.

property units

Units of the supply curve column, or "N/A" if not applicable