climada_petals.engine package¶
climada_petals.engine.supplychain module¶
- class climada_petals.engine.supplychain.SupplyChain[source]¶
Bases:
objectSupplyChain class.
The SupplyChain class provides methods for loading Multi-Regional Input-Output Tables (MRIOT) and computing direct, indirect and total impacts.
- mriot_data¶
The input-output table data.
- Type
np.array
- mriot_reg_names¶
Names of regions considered in the input-output table.
- Type
np.array
- sectors¶
Sectors considered in the input-output table.
- Type
np.array
- total_prod¶
Countries’ total production.
- Type
np.array
- mriot_type¶
Type of the adopted input-output table.
- Type
str
- reg_pos¶
Regions’ positions within the input-output table and impact arrays.
- Type
dict
- reg_dir_imp¶
Regions undergoing direct impacts.
- Type
list
- years¶
Years of the considered hazard events for which impact is calculated.
- Type
np.array
- direct_impact¶
Direct impact array.
- Type
np.array
- direct_aai_agg¶
Average annual direct impact array.
- Type
np.array
- indirect_impact¶
Indirect impact array.
- Type
np.array
- indirect_aai_agg¶
Average annual indirect impact array.
- Type
np.array
- total_impact¶
Total impact array.
- Type
np.array
- total_aai_agg¶
Average annual total impact array.
- Type
np.array
- io_data¶
Dictionary with the coefficients, inverse and risk_structure matrixes and the selected input-output modeling approach.
- Type
dict
- read_wiod16(year=2014, range_rows=(5, 2469), range_cols=(4, 2468), col_iso3=2, col_sectors=1)[source]¶
Read multi-regional input-output tables of the 2016 release of the WIOD project: http://www.wiod.org/database/wiots16
- Parameters
year (int) – Year of WIOD table to use. Valid years go from 2000 to 2014. Default year is 2014.
range_rows (tuple) – initial and end positions of data along rows. Default is (5,2469).
range_cols (tuple) – initial and end positions of data along columns. Default is (4,2468).
col_iso3 (int) – column with countries names in ISO3 codes. Default is 2.
col_sectors (int) – column with sector names. Default is 1.
References
[1] Timmer, M. P., Dietzenbacher, E., Los, B., Stehrer, R. and de Vries, G. J. (2015), “An Illustrated User Guide to the World Input–Output Database: the Case of Global Automotive Production”, Review of International Economics., 23: 575–605
- calc_sector_direct_impact(hazard, exposure, imp_fun_set, selected_subsec='service')[source]¶
Calculate direct impacts.
- Parameters
hazard (Hazard) – Hazard object for impact calculation.
exposure (Exposures) – Exposures object for impact calculation. For WIOD tables, exposure.region_id must be country names following ISO3 codes.
imp_fun_set (ImpactFuncSet) – Set of impact functions.
selected_subsec (str or list) – Positions of the selected sectors. These positions can be either defined by the user by passing a list of values, or by using built-in sectors’ aggregations for the WIOD data passing a string with possible values being “service”, “manufacturing”, “agriculture” or “mining”. Default is “service”.
- calc_indirect_impact(io_approach='ghosh')[source]¶
Calculate indirect impacts according to the specified input-output appraoch. This function needs to be run after calc_sector_direct_impact.
- Parameters
io_approach (str) – The adopted input-output modeling approach. Possible approaches are ‘leontief’, ‘ghosh’ and ‘eeioa’. Default is ‘gosh’.
References
[1] W. W. Leontief, Output, employment, consumption, and investment, The Quarterly Journal of Economics 58, 1944. [2] Ghosh, A., Input-Output Approach in an Allocation System, Economica, New Series, 25, no. 97: 58-64. doi:10.2307/2550694, 1958. [3] Kitzes, J., An Introduction to Environmentally-Extended Input-Output Analysis, Resources, 2, 489-503; doi:10.3390/resources2040489, 2013.