Closed ajrobbins closed 8 years ago
We probably have to proportionally weight the county to the portion that exists in the AoI (similarly to what we do for MapShed).
Also, this should be unified as much as possible with the existing mapshed query getting animal counts. If that is not area weighted, check out in-progress changes that deal with new attributes on that dataset which do similar things: https://github.com/WikiWatershed/model-my-watershed/pull/1423/files
Sounds good. I'll take another look at that PR to see how it's implemented.
And just for clarification, the PR is calculating LS from values on ms_county_animals
, the actual map shed AEU stuff may already have what we want for analysis output.
For reference the MapShed animal count method is here -- https://github.com/WikiWatershed/model-my-watershed/blob/develop/src/mmw/apps/modeling/mapshed/calcs.py#L149
Dropping this here for reference, too, from a description of the USDA county animals shapefile:
It provides information that will allow the estimation basin-level populations for 9 different types of farm animals on a per unit area basis. The key fields to be used by MapShed include “Fips_code”, “Beef_ha”, “Dairy_ha”, “Broiler_ha”, “Layer_ha”, “Hogs_ha”, “Goat_ha”, “Horse_ha”, Sheep_ha”, and “Turkey_ha”.
Basic summary statistics for Area of Interest from national county animal population data (by animal type), including total Animal Equivalent Units (AEU), will be included in the Analyze output.
We need to:
Questions for @mmcfarland : should the tab also include a bar chart like we have for land/soil:
with proportion of AEUs by animal type? Also, should the tab be called "Livestock" or something else, like "Animal distribution" or something?