Harmonize new recursive functions with those in recursive-refac #285
Replies: 20 comments 80 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Status of FBS:
|
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Regarding |
Beta Was this translation helpful? Give feedback.
-
@matthewlchambers @bl-young In the original method, those columns are retained . In the water FBS method I'm running into an issue with the recursive method that the "clean_fba" functions subset data using FlowName/Compartment. I can update the functions to use Flowable/Context info, but before I do I wanted to check if this is a widespread issue and if it is worth retaining FlowName/Compartment and dropping those columns later. |
Beta Was this translation helpful? Give feedback.
-
FBS status:
|
Beta Was this translation helpful? Give feedback.
-
Potential feature: The specific application I'm thinking is when we use EIA_MECS but need to subset for different flows. Estimating the suppressed data would only then be required once, instead of each time that attribution source is called. Lines 1005 to 1008 in 651b62f I think that here we could just append |
Beta Was this translation helpful? Give feedback.
-
FlowBySectors seem to generate with extra FBA columns such as:
specifically: ActivityProducedBy, ActivityConsumedBy, SourceName, Description, but all fields are blank |
Beta Was this translation helpful? Give feedback.
-
@matthewlchambers @bl-young The current hold up with converting Water_national_m1 to the recursive method is that the 'clean_fba' function is called on for each activity set individually, rather than applying 'clean_fba' to the entire source df before subsetting the df into activity sets (which is the order in the original method). For USGS_NWIS_WU, the df needs to be cleaned before broken into activity sets because there are some calculations that require activities that are in different activity sets. @matthewlchambers Is there a reason 'clean_fba' is called on repeatedly rather than a single time? Can we call on clean_fba before each activity set? |
Beta Was this translation helpful? Give feedback.
-
Just pushed an update to |
Beta Was this translation helpful? Give feedback.
-
The crop data in NEI via USDA uses |
Beta Was this translation helpful? Give feedback.
-
@matthewlchambers I'm experiencing an issue with CAP_HAP when trying to use BEA Use table data to allocate an activity set (e.g. Lines 901 to 917 in eb3724a When creating the flowsa/flowsa/methods/flowbysectormethods/CAP_HAP_national_2017.yaml Lines 160 to 161 in eb3724a In line 915 in the chunk above, converting to Notably adding a |
Beta Was this translation helpful? Give feedback.
-
I'm having an issue in Specifically data are getting dropped here because the Lines 934 to 944 in 0d0e361 any ideas @matthewlchambers |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@matthewlchambers @bl-young |
Beta Was this translation helpful? Give feedback.
-
@matthewlchambers I have another Water FBS specific issue. The target sector is 6-digits, however some of the data are brought in at 7-digit sectors and I want to keep them at NAICS7 until after 2 datasets are multiplied. I am multiplying a water application rate (kg/m2) by total land area (m2) for specific crops. Aggregating to NAICS6 before multiplying would result in less accurate calculations of water use by crop type. Additionally because one of the data sets is a rate (kg/m2), that dataset cannot be aggregated from NAICS7 to NAICS6 by simply summing the data, it would need to be a weighted aggregation. |
Beta Was this translation helpful? Give feedback.
-
@matthewlchambers A dataset with text based activities that could benefit from estimating suppressed data is in Water_national_2015_m1, "cropland_attribution", the "USDA_CoA_Cropland" FBA used for attribution. Right now, all suppressed data in USDA_CoA_Cropland is dropped in |
Beta Was this translation helpful? Give feedback.
-
@matthewlchambers in the water FBS, I want to attribute a single activity "Irrigation Crop" in the primary data source to NAICS 6. To do so, I call on USDA_CoA_Cropland. The USDA_CoA_Cropland needs to be first further attributed using USDA_CoA_Cropland_NAICS. But what I would like to do is attribute all USDA_CoA_Cropland sectors that begin with '112' with UsDA_CoA_Cropland_NAICS that have a "FARM OPERATIONS" flowclass and all USDA_CoA_Cropland sectors that begin with '111' with USDA_CoA_Cropland_NAICS that have a "AG LAND, CROPLAND, HARVESTED" flowclass. The FBS methodology is not currently set up to attribute part of an attribution source via one method and another part via another method, correct? I can't break the primary data source into two activity sets, so really I need a way of breaking the attribution source into 2 activity sets. |
Beta Was this translation helpful? Give feedback.
-
Discuss steps necessary to update the FBS methodology to use recursive modeling
@matthewlchambers @bl-young
Beta Was this translation helpful? Give feedback.
All reactions