Skip to content

Commit

Permalink
add sample detail model w/ 2017 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Feb 18, 2024
1 parent 72b6432 commit 6f157aa
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ jobs:
useeior::printValidationResults(m)
shell: Rscript {0}

- name: Build and validate models - USEEIOv2.1 detail model, 2017 schema
if: always()
run: |
require(devtools)
devtools::load_all()
m <- useeior::buildModel("USEEIOv2.1-GHG")
useeior::printValidationResults(m)
shell: Rscript {0}

- name: Build and validate models - USEEIOv2.0-i-411 detail industry model with waste disaggregation
if: always()
run: |
Expand Down
61 changes: 61 additions & 0 deletions inst/extdata/modelspecs/USEEIOv2.1-GHG.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Model: "USEEIOv2.1-GHG" # 2017 Detail, Commodity
BaseIOSchema: 2017
BaseIOLevel: "Detail"
IOYear: 2017 # Year for IO data
ModelRegionAcronyms: ["US"]
ModelType: "EEIO"
IODataSource: "BEA"
BasePriceType: "PRO" #producer
BasewithRedefinitions: FALSE
CommodityorIndustryType: "Commodity"
ScrapIncluded: FALSE
DisaggregationSpecs: null

SatelliteTable:
GHG:
FullName: "Greenhouse Gases"
Abbreviation: "GHG"
StaticSource: TRUE
StaticFile: "flowsa/FlowBySector/GHG_national_2020_m2_v2.0.1_1d3a514.parquet"
FileLocation: "DataCommons"
DataYears: [2020]
Locations: ["US"]
SectorListSource: "NAICS"
SectorListYear: 2017
SectorListLevel: "6"
OriginalFlowSource: "FEDEFLv1.1.0"
ScriptFunctionCall: "getFlowbySectorCollapsed" #function to call for script
ScriptFunctionParameters: null
DataSources:
USEPA_GHG_2022:
Title: "GHG Inventory"
Author: "USEPA"
DataYear: 2020
URL: "https://www.epa.gov/ghgemissions/inventory-us-greenhouse-gas-emissions-and-sinks-1990-2020"
Primary: TRUE

Indicators:
GreenhouseGases:
Name: "Greenhouse Gases"
Code: "GHG"
Group: "Impact Potential"
Unit: "kg CO2 eq"
SimpleUnit: "Kilograms Carbon Dioxide (CO2)"
SimpleName: "Greenhouse Gases"
StaticSource: TRUE
StaticFile: "lciafmt/traci/TRACI_2.1_v1.0.0_5555779.parquet"
FileLocation: "DataCommons"
ScriptFunctionCall: "getImpactMethod" #function to call for script
ScriptFunctionParameters:
indicators: ["Global warming"]
DataSources:
USEPA_TRACI_2.1:
Title: "TRACI 2.1"
Author: "USEPA"
DataYear: NA
URL: "https://www.epa.gov/chemical-research/tool-reduction-and-assessment-chemicals-and-other-environmental-impacts-traci"
Primary: TRUE

DemandVectors:
DefaultDemand: "DefaultDemandVectors" # Name of default demand vectors yml file
# Additional demand vectors beyond useeior defaults

0 comments on commit 6f157aa

Please sign in to comment.