Hi all, It would be nice to be able to use units to display the carbon emissions from energy consumption (either kgCO2e/kWh or kgCO2/kWh).
I have attempted adding the units to the units.txt file but ran into some troubles first of all defining CO2 and then using it in the unit formula. Would co2 be defined in the dimensionless section in order to use later in the file? e.g.
-- dimensionless (null)
kilograms_of_carbon_per_kilowatt_hour, kg CO₂/kWh
...
-- carbon emissions (kg1*co2/kg1*m2*sec-2)
kilograms_carbon_per_kilowatt_hour, kg CO2/kWh
When attempting to use the units without defining them in units.txt, _kgCO/kWh will work when used as a string but kgCO2/kWh will not.
It would be great to receive some feedback on the appropriateness of the emissions units and/or tips on the correct formatting.
Cheers,
Geoff
Brian FrankTue 27 Oct 2015
The file attempts to map units to the seven base SI units (of which CO2 is not a base unit). In this case it would probably be a dimensionless unit, but before making that case it would be good to consider conversions and other units which fit this "quantity"
Geoff Barton Tue 27 Oct 2015
Hi all, It would be nice to be able to use units to display the carbon emissions from energy consumption (either
kgCO2e/kWh
orkgCO2/kWh
).I have attempted adding the units to the units.txt file but ran into some troubles first of all defining CO2 and then using it in the unit formula. Would
co2
be defined in thedimensionless
section in order to use later in the file? e.g.When attempting to use the units without defining them in units.txt,
_kgCO/kWh
will work when used as a string butkgCO2/kWh
will not.It would be great to receive some feedback on the appropriateness of the emissions units and/or tips on the correct formatting.
Cheers,
Geoff
Brian Frank Tue 27 Oct 2015
The file attempts to map units to the seven base SI units (of which CO2 is not a base unit). In this case it would probably be a dimensionless unit, but before making that case it would be good to consider conversions and other units which fit this "quantity"