Data dimensions

item.model.dimensions.EXCLUDE_MODE = {'ef_bc': {'Freight Rail and Air and Ship'}, 'intensity_service': {'Freight Rail and Air and Ship'}, 'tkm': {'Freight Rail and Air and Ship'}, 'ttw_bc': {'Freight Rail and Air and Ship'}, 'ttw_ch4': {'Freight Rail and Air and Ship'}, 'ttw_co2e': {'Freight Rail and Air and Ship'}, 'ttw_n2o': {'Freight Rail and Air and Ship'}, 'ttw_pm2.5': {'Freight Rail and Air and Ship', 'International Shipping'}, 'vkt': {'Freight Rail and Air and Ship'}, 'wtt_co2e': {'Domestic Shipping', 'Freight Rail and Air and Ship', 'International Shipping'}, 'wtw_co2e': {'Domestic Shipping', 'Freight Rail and Air and Ship', 'International Shipping'}}

Exclusions for generate().

item.model.dimensions.check(A, out_file)[source]

Compare a table of quantities, A, to the official list.

The comparison is performed using a database ‘outer’ join; this preserves rows in either table that do not appear in the other.

Results are written to out_file; the last two columns, ‘unit_generated’ and ‘unit_official’ are filled iff the quantity is present in the respective list.

item.model.dimensions.generate()[source]

Attempt to generate the reporting quantities from simple rules.

item.model.dimensions.list_pairs(in_file, out_file)[source]

Helper function for preparing the quantities list.

Writes a file out_file with all unique combinations of variables between successive dimesions in in_file; that is, all combinations of: - variable & mode, - mode & technology, and - technology & fuel.

item.model.dimensions.load_template(version)[source]

Load a data submission template for version.