h2integrate.simulation.technologies.iron.load_top_down_coeffs

h2integrate.simulation.technologies.iron.load_top_down_coeffs#

Loads 'top-down' coefficients from a .csv

Functions

load_top_down_coeffs([coeff_list, cost_year])

Loads top-down cost coefficients from a CSV file and adjusts for inflation if needed.

h2integrate.simulation.technologies.iron.load_top_down_coeffs.load_top_down_coeffs(coeff_list=None, cost_year=None)#

Loads top-down cost coefficients from a CSV file and adjusts for inflation if needed.

Parameters:
  • coeff_list (list, optional) -- A list of coefficient names to extract. If None, all coefficients are used. Defaults to None.

  • cost_year (int, optional) -- The target year for cost adjustments. If provided, values with dollar-based units are adjusted for inflation using CPI. Defaults to None.

Returns:

dict --

A dictionary containing:
  • "years" (numpy.ndarray): Array of years corresponding to the coefficient values.

  • Each coefficient as a key, with values:
    • "values" (numpy.ndarray): The numerical values of the coefficient.

    • "unit" (str): The unit of the coefficient.

Example

>>> coeffs = load_top_down_coeffs(["Skilled Labor Cost"], 2015)
>>> print(coeffs["Skilled Labor Cost"]["values"])