Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Define production units for all lands/waters products #1396

Closed
8 tasks
shawnbot opened this issue May 10, 2016 · 12 comments
Closed
8 tasks

Define production units for all lands/waters products #1396

shawnbot opened this issue May 10, 2016 · 12 comments
Assignees
Labels
data-mgmt Use this label for adding and/or updating data on the site. Also can be used for data management too

Comments

@shawnbot
Copy link
Contributor

shawnbot commented May 10, 2016

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:

'Biomass (total)': 'tons'
'Wind': 'kilowatt hours'

Then, in our templates we would get the units with:

{% assign units = product.units | default: site.data.production_units[product.name] %}
@shawnbot shawnbot self-assigned this May 10, 2016
@shawnbot shawnbot added the data-mgmt Use this label for adding and/or updating data on the site. Also can be used for data management too label May 10, 2016
@shawnbot shawnbot changed the title Figure out units for all lands/waters products Define production units for all lands/waters products May 10, 2016
@shawnbot
Copy link
Contributor Author

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.

@shawnbot
Copy link
Contributor Author

Another thing to consider: Should we have shorthand notation for some units, like kWh for kilowatt-hours? If so, our units definition data might look like this instead:

products:
  'Wind': 'kilowatt-hours'

shorthand:
  'kilowatt-hours': 'kWh'

@meiqimichelle
Copy link
Contributor

@shawnbot is this something that we should resolve before your time gets split?

@shawnbot
Copy link
Contributor Author

Nope, I think y'all can handle this if I'm not able to.

@coreycaitlin
Copy link
Contributor

Some of these products would also make more sense with the word "energy" after them (i.e. "hydroelectric energy").

@shawnbot
Copy link
Contributor Author

So I think @coreycaitlin hit upon a pretty good justification for having something like this instead in, say, _data/production_units.yml (or whatever):

products:
  Hydroelectric:
    name: Hydroelectric Energy
    units: kilowatt-hours

abbreviations:
  kilowatt-hours: kWh

Then, in places where we use product_name in our Jekyll templates now, we would do something like this:

{% 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 %}

@meiqimichelle
Copy link
Contributor

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.

@gemfarmer
Copy link
Contributor

@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?

@ericronne
Copy link
Contributor

Current plan was to list the units after the number, see #1556
We need to confirm that this will work with all charts, tho

@ericronne
Copy link
Contributor

Maps...
image

@coreycaitlin
Copy link
Contributor

@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:

screen shot 2016-07-05 at 2 12 02 pm

screen shot 2016-07-05 at 2 13 21 pm

screen shot 2016-07-05 at 2 21 22 pm

@coreycaitlin
Copy link
Contributor

coreycaitlin commented Jul 6, 2016

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!

  • One dataset has Coal (short tons) and another has Coal (tons). Do both actually use short tons, or are they actually using different units?
  • Re: Conventional Hydroelectric: Can we just call this "Hydroelectric"? Do we have any other kinds of hydroelectric energy?
  • One dataset has Gas (mcf) and another has Natural Gas (mcf) Do these both refer to natural gas, or is there a difference? (This also came up in one usability test.)
  • Geothermal! @mentastc, I might need some help understanding the intricacies of the 6 different ways we list geothermal.

@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.

@gemfarmer gemfarmer mentioned this issue Jul 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
data-mgmt Use this label for adding and/or updating data on the site. Also can be used for data management too
Projects
None yet
Development

No branches or pull requests

5 participants