Klimatbyran / garbo

Klimatkollen's data pipeline, processing company sustainability reports
3 stars 6 forks source link

Normalize unit for emission scopes to something like `tCO₂e` or `ton CO₂e` #131

Closed Greenheart closed 3 months ago

Greenheart commented 3 months ago

As of 2024-06-05, some companies get the unit metric ton CO2e and others tCO2e.

Ideally, the unit could be normalized and formatted as tCO₂e to improve consistency.

This could of course be handled on the frontend, but would be nice to correct as close to the data source as possible which is in the data layer.

One implementation could be to use a Set with common unit variations. These could then be replaced with the expected formatted unit tCO₂e (using the unicode subscript 2 to ensure it works well in all contexts and not just with html formatting). Alternatively, this could be done with a regex to match variations.

Greenheart commented 3 months ago

Actually, I'm not sure if tCO₂e makes sense. Maybe ton CO₂e would be better. That would be consistent with how we've done things up until now.