Comments (8)
@bl-young Thanks for pointing this issue out. It is a necessary step for some of the mappings I'm working with. I moved the "add_sectors_to_flowbyactivity" into the for loop that runs through each of the activities in the "names" list of an activity set. This way the NAICS are assigned to each SCC, one at a time, so the NAICS shouldn't be dropped.
from flowsa.
@bl-young let us know if this is still a problem or otherwise go ahead and close, thanks
from flowsa.
I'm still getting unexpected results where the allocation to sectors is wrong. I will post a more detailed update.
from flowsa.
Its still unclear to me why we are removing NAICS in line 119 that already exist in the mapping file
from flowsa.
Ok - I see how the current method of implementation can cause problems. The objective is to prevent existing data from being overwritten. For instance, in the USDA_IWMS mapping, we have:
ORCHARDS =1113
BERRY TOTALS =111334
I want the water application rates (acre-feet/acre) for orchards disaggregated to naics6, but I don't want the acre-feet/acre for berry totals to be overwritten by the orchards value, so I was dropping the mapping 1113 -> 111334.
The code needs to be revised so it doesn't blanket drop existing NAICS. Let me think about it...
from flowsa.
But wouldn't you still want the value included in Orchards to apply to Berries just like all other subsets of 1113?
from flowsa.
The issue is with how I set up the crosswalk for USDA IWMS. We can remove line 119 (and associated code).
from flowsa.
resolved here
from flowsa.
Related Issues (20)
- in geo.filtered_fips: TypeError: unhashable type: 'Series' HOT 5
- Need to refactor various source.py functions to use fba.config
- Updates to testing for improved clarity HOT 3
- Add new sectors to NAICS crosswalks upon crosswalk load HOT 1
- Memory error running FBS on ghgi-recursive-yaml/recursive-refac branches with pandas 1.5+ HOT 2
- BTS_airlines.py not wrapped in function HOT 2
- harmonized location system missing HOT 6
- Modify GH Actions FBS compare against remote to fail after testing all FBS
- FBS that contain substrings of other FBS are not accessed correctly HOT 1
- Estimate non-zero FlowAmounts when below source reporting threshold HOT 4
- Errors in GHGI table 3.7 HOT 1
- support GoogleColab HOT 1
- Double counting of some flows in CNHWC_national HOT 1
- GHG_national_m1 FBS - year of MECS inconsistent HOT 1
- GHG_national_m1 FBS - 2017-2020 can use more recent USGS_MYB_Lead FBAs HOT 3
- Non-energy use of fuels allocation error GHG_national HOT 4
- _fuel_MECS allocation not working for stationary combustion CO2 coal HOT 10
- FBS != FBA errors in GHG_m1 mecsallocationfix/transportation branches HOT 7
- Split of HFCs leaves uncharacterized "Others" HOT 8
- GHGI Table 3.9 errors HOT 2
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 flowsa.