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

Separate production units from product names #1370

Closed
shawnbot opened this issue Apr 13, 2016 · 3 comments
Closed

Separate production units from product names #1370

shawnbot opened this issue Apr 13, 2016 · 3 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

Right now the units are included in the product name, so we see stuff like "Oil (bbl)" all over the place. In the new state pages (and in our intermediate database) we should split the units from each product so that we can pull them out into the Jekyll data and display them on different places, e.g. in table headings or in text descriptions. Here are two ways of doing it:

  1. Always have a units field alongside production numbers, e.g.

    products:
      'Oil':
        units: 'bbl'
        volume:
          '2003': 240138

    This would mean needing to split those fields up before they're put into the database, but that should be pretty simple.

  2. Maintain a separate dictionary for units of each product:

    Oil: 'bbl'
    Coal: 'short tons'

    This has one little problem: some products, such as Geothermal, are actually measured in multiple units, e.g. "Geothermal - Direct Utilization, Millions of BTUs" and "Geothermal - Electrical Generation, Other".

@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 Apr 13, 2016
@gemfarmer
Copy link
Contributor

This has one little problem: some products, such as Geothermal, are actually measured in multiple units, e.g. "Geothermal - Direct Utilization, Millions of BTUs" and "Geothermal - Electrical Generation, Other".

@shawnbot for this ^^ reason, I think #1 makes more sense.

@shawnbot
Copy link
Contributor Author

shawnbot commented May 9, 2016

Okay, I'm looking into this now.

@shawnbot
Copy link
Contributor Author

This is essentially done in #1395, and the remaining details can be discussed in #1396. Closing!

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

3 participants