From 6f157aa93a5bd6e1e68f0efef33ad78c65ef9ab3 Mon Sep 17 00:00:00 2001 From: Ben Young Date: Sun, 18 Feb 2024 14:09:46 -0500 Subject: [PATCH] add sample detail model w/ 2017 schema --- .github/workflows/R-CMD-check.yaml | 9 ++++ inst/extdata/modelspecs/USEEIOv2.1-GHG.yml | 61 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 inst/extdata/modelspecs/USEEIOv2.1-GHG.yml diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 1c242c6f..542bdeac 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -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: | diff --git a/inst/extdata/modelspecs/USEEIOv2.1-GHG.yml b/inst/extdata/modelspecs/USEEIOv2.1-GHG.yml new file mode 100644 index 00000000..40cd8ff6 --- /dev/null +++ b/inst/extdata/modelspecs/USEEIOv2.1-GHG.yml @@ -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