-
Notifications
You must be signed in to change notification settings - Fork 26
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
Updates to disaggregation to support electricity #164
Conversation
…disaggregated electricity sector codes and names
…tions and UseTransactions
…nued testing and development of aggregation functions
…aggregation from eLCI/flowsa for electricity disaggregation
…hes and use new function disaggregateSatelliteSubsetByRatio
…into electricity_disagg
…gation functions to handle the change. This change is to make the format more consistent with the disaggregation format.
…gregation yml files instead of one combined disaggregation yml file.
@MoLi7, we have made a number of updates including:
I'm going to spend a bit more time reviewing the satellite table disaggregation given some of the bugs we found recently, but hopefully nothing new crops up. |
A potential issue: disagg elec sectors are mapped to both utilities and gov sectors in I think the latter is correct mapping, because S00101 and S00202 are aggregated to 221100 therefore should be removed from model. Plus, having 22XXXX mapped to 22 and G is creating problems in visualization - colors are completely off. Hope I'm not missing/mistaking anything here. @bl-young @jvendries |
@MoLi7 keep in mind that in this case the two gov't sectors are only industries and not commodities. but yes, they are maintained in the crosswalk partly as a record of the agg/disagg process (so the original BEA sectors are maintained). I did not consider how this would impact the visualization functions. This could be problematic in future cases of aggregating across summary levels like we are doing here, but perhaps that is unlikely. This situation is also tricky because there are no NAICS associated with federal and state utilities. |
…egation allocations
…umber of sectors needing allocation
…t for non target sectors
…ector in the crosswalk
@MoLi7 as a solution to the visualization problem you raised, I updated the aggregation of the crosswalk to also update the sector and summary data such that it matches the aggregated sector (in this case '22' and '22') That way when assigning sectors for visualization, all those data will be assigned to utilities (22) and we won't have duplicates. Yes the crosswalk maintains the BEA_Detail showing the original sectors still as s00101 and s00202. see 85a3c38 |
@bl-young that's a fair solution. I was unsure whether assigning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is only one suggestion: this log info of aggregation is quite detailed and noticeable, compared to the very generalized log info of disaggregation, as if we wanted users to pay special attention to it.
I find the generalized one informative enough (maybe I'm just used to it), unless you think disclosing the aggregation details are much needed here. @bl-young @jvendries |
@MoLi7 - we updated it based on your comment above,
perhaps I misunderstood 😄 |
Sorry I was not being clear enough... My previous comment about "more informative" was referring to "print sector names", and it was made when I was exclusively focused on aggregation. Now with improved understanding of the agg and disagg processes, I'm more inclined to having them two consistent in terms of the log info we give to users, therefore I suggested simplifying as the disagg part does not disclose any details. But it's your call, I'm okay with either simplifying or informative as long as agg and disagg are consistent. Hope this makes sense 😊 |
Ok updated with c515469 |
Updates to support sequential disaggregations and methods necessary for electricity including:
USEEIO
column for active sector list for NAICS -> BEA