Comments (6)
The if statement is just setting the base inventory, and the order of the if statement is just setting the preferred order. StEWI will still process the other three inventories because "model_specs.inventories_of_interest" is passed to stewicombo.combineInventoriesforFacilitiesinBaseInventory. It's been a while since I looked at it, but I believe the base inventory provides the facility ID numbers that are used to match the other inventories to since those datasets have their own unique facilitiy IDs. @bl-young might be able to confirm.
from electricitylci.
Yes that's right. The base inventory serves as the source of the facility list I believe, but the rest of the inventories are brought in and matched to facilities in the base inventory
from electricitylci.
Could I trouble you for a few sentences that capture this behavior? @bl-young, is there more documentation on what filter_for_lci
does? It's a little hard to discern without documentation, but it seems to trigger 5 other filters (in filters.yaml). Is that right?
Correct me if I'm wrong, but what I'm hearing so far is the following:
Assign the reference inventory (e.g., eGRID, NEI, TRI, RCRAInfo) to be used for defining the facility-level inventories gathered from each of the inventories of interest (as defined in the model's configuration file) using USEPA's stewi package. Data are filtered for LCI (whatever that means).
from electricitylci.
@m-jamieson, the documentation in the wiki for this module reads,
This module will either use an existing inventory determined from the inventories_of_interest specified in the configuration file or create one by calling stewicombo from Standardized Emission and Waste Inventories (StEWI). If there is no existing CSV file the call to stewicombo to generate the inventory can take some time. It should be noted that this module is executed immediately upon import, which may cause some unexpected delays if the CSV file is not present.
Reading the code, it looks like from the first sentence, you are actually looking for an existing inventory determined by model_specs.stewicombo_file
and not inventories_of_interest
and that inventories_of_interest
are used to gather inventories from stewi. Am I reading this correctly?
from electricitylci.
You're more than likely reading that correctly. A lot of this wiki was developed concurrently with the final version of model_specs. I suspect that rather than "calcuating" a string name from the inventories_of_interest, we opted just to have a variable to specify it.
from electricitylci.
If there is no existing CSV file the call to stewicombo to generate the inventory can take some time. It should be noted that this module is executed immediately upon import, which may cause some unexpected delays if the CSV file is not present.
I will add that we now have the ability to point to a locally stored, or externally sourced via data commons, combined inventory file (via stewicombo_file
), as a replacement for the csvs in the repository. The wiki likely predates that entirely
from electricitylci.
Related Issues (20)
- What impact assessment method? HOT 4
- Globals, references to globals, and editing references of globals
- Forced BA aggregation for FERC and US, but what about eGRID? HOT 3
- Should PC link to petcoke UP? HOT 2
- KeyError in fill_default_provider_uuids
- Missing data file reference in Wiki
- No fuel category in Stewi's getInventoryFacilities for eGRID 2020 HOT 1
- _exchange_table_creation_ref missing renewables HOT 1
- EIA coalpublic2021.xls Excel file format cannot be determined HOT 1
- Missing International Mix data for 2021 onward HOT 3
- Addressing the Industrial Cogeneration Problem and Implementing the filter in model_config HOT 1
- Fix output exchange flows mislabeled as resources HOT 5
- Mexican balancing authority labeled as Canada in BA_Codes_930.xlsx HOT 7
- No 2022 EIA transmission and distribution loss data HOT 3
- Missing Canadian Exports for 2021 and beyond HOT 1
- Fix region mis-match between consumption and distribution mixes
- Incorrect output flow for "at grid; consumption mix" HOT 2
- Issues with the electricity column in generate_plant_water_use() HOT 1
- Update coal model inventories
- Set temporal representativeness attribute for processes to inventory vintage, not target year
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electricitylci.