New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set up database and load eGRID database data #2
Comments
@lamnd09 Can you change your import to use the data format described in this task? See the original description and the spreadsheet that I've attached. |
@lamnd09 After some more thinking I still believe it is better to separate the logic of looking up emissions factors from storing this seed data on the chain. So can you just load one of these records based on what's here and then calculate the emissions by making the conversion? Then we can work on loading and getting data from a DB, either Orbit or Dynamo DB or something else. |
@opentaps , it sounds reasonable! I will update the data format as #2 #3 with NRL18 to compute emissions. So I will create 2 structure, one for Utility to get NERC_REGION, then with NERC_REGION, a strucuture for emissions we compute the emission as #4. In second part, first step, I just take away some colums contain values of CO2 emission? How do you think? |
Yes, so currently you have one Value struct, we'll need 3: Emissions which
mirrors the emissions.js from node, and then a UtilityData for the fields
from #3 and EmissionsFactors for the fields from #2.
Just initialize with one record of UtilityData and one of EmissionsFactor
for now. We can later work on code for getting them.
Then the calculation should have some conversion in case there are other
units of measure, for example other than KWH or TONS. Again, you can leave
that for later.
-----
Si Chen
Open Source Strategies, Inc.
Join our Hyperledger Open Source Carbon Accounting & Certification Working
Group
<https://wiki.hyperledger.org/display/CASIG/Carbon+Accounting+and+Certification+Working+Group>
-
Video <https://www.youtube.com/watch?v=Jbq2TYXPmj0>
…On Fri, Aug 28, 2020 at 4:56 AM Lam D. Nguyen ***@***.***> wrote:
@opentaps <https://github.com/opentaps> , it sounds reasonable! I will
update the data format as #2
<opentaps#2> #3
<opentaps#3> with
NRL18 to compute emissions. So I will create 2 structure, one for Utility
to get NERC_REGION, then with NERC_REGION, a strucuture for emissions we
compute the emission as #4
<opentaps#4>. In
second part, first step, I just take away some colums contain values of CO2
emission? How do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<opentaps#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANAS4K6H7BCONQROJ27JFDSC6LQDANCNFSM4QCMPLZA>
.
|
Revert "Integrating automated test to Github pipeline"
* Fixed lint warning in chaincode * Fixed linting warnings in typescript_app * Fixed lint warning due to prettier auto save Signed-off-by: Amarbir Singh <amarbir1800@gmail.com> Lint warning fixes (#2) * Fixed lint warning in chaincode * Fixed linting warnings in typescript_app * Fixed lint warning due to prettier auto save * Fixed no-return-type lint warnings Signed-off-by: Amarbir Singh <amarbir1800@gmail.com> Update emissionsRecordContract.ts Bug fix while merge request Signed-off-by: Amarbir Singh <amarbir1800@gmail.com> Typo fix Signed-off-by: Amarbir Singh <amarbir1800@gmail.com> Fixed two more typos Signed-off-by: Amarbir Singh <amarbir1800@gmail.com>
Set up a local database (couchdb) with a table for UTILITY_EMISSION_FACTORS with the following fields:
_ Division_id
Load data from the EPA eGRID database
Specifically, we can start from the attached spreadsheet from https://www.epa.gov/sites/production/files/2020-01/egrid2018_all_files.zip
It has the following tabs which are useful:
We can start with NRL18 for now:
The text was updated successfully, but these errors were encountered: