-
Notifications
You must be signed in to change notification settings - Fork 41
Define production units for all lands/waters products #1396
Comments
I've added a task list to this issue description with the product names for which we don't have units in both the all lands and federal production data. |
Another thing to consider: Should we have shorthand notation for some units, like products:
'Wind': 'kilowatt-hours'
shorthand:
'kilowatt-hours': 'kWh' |
@shawnbot is this something that we should resolve before your time gets split? |
Nope, I think y'all can handle this if I'm not able to. |
Some of these products would also make more sense with the word "energy" after them (i.e. "hydroelectric energy"). |
So I think @coreycaitlin hit upon a pretty good justification for having something like this instead in, say, products:
Hydroelectric:
name: Hydroelectric Energy
units: kilowatt-hours
abbreviations:
kilowatt-hours: kWh Then, in places where we use {% assign product_name = product[1].name %}
{% assign units = product[1].units %}
{% assign units_abbr = units %}
{% if product_name in site.data.production_units %}
{% assign _product = site.data.production_units[product_name] %}
{% assign product_name = _product.name | default: product_name %}
{% assign units = _product.units | default: units | default: 'units' %}
{% assign units_abbr = site.data.production_units.abbreviations[units] | default: units_abbr %}
{% endif %} |
Perhaps as a first step, we need to understand where on the page we want the units to display to make sure it can be the same words throughout, or if we need to adjust for each? For example, right now there aren't units in the bar chart production number (ie, next to the number). We probably want them there?? @coreycaitlin maybe you already have this somewhere -- I know you've been thinking about units. |
@ericronne do we know where we want the units on the bar charts and maps? @coreycaitlin do you have an idea for how we should handle production units? |
Current plan was to list the units after the number, see #1556 |
@ericronne Are you thinking we'd show units after just the first one? Or all of them? I'd be fine with putting it in the map/legend title, too. @gemfarmer and I talked about this a bit today and came up with these examples: |
I added an issue to cover some redundancies in the all-lands production product listing: #1574 I've taken a first pass through trying to sort out some unit names and units, and here are my questions!
@meiqimichelle or @mentastc, let me know if any of these question are more complicated than I figured and would be best to talk through in person. |
For some EIA commodities, such as renewables, the units are unknown. These are the products:
All Other Renewables
Biomass (total)
Conventional Hydroelectric
Geothermal
Other biomass
Solar
Wind
Wood and wood-derived fuels
We should probably create a mapping of these , e.g. in
_data/production_units.yml
:Then, in our templates we would get the units with:
The text was updated successfully, but these errors were encountered: