WikiWatershed / model-my-watershed

The web application front end for Model My Watershed.
https://modelmywatershed.org
Apache License 2.0
57 stars 31 forks source link

Include Animal Population summary in analysis results #1424

Closed ajrobbins closed 8 years ago

ajrobbins commented 8 years ago

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: screen shot 2016-08-18 at 1 52 34 pm

with proportion of AEUs by animal type? Also, should the tab be called "Livestock" or something else, like "Animal distribution" or something?

mmcfarland commented 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).

mmcfarland commented 8 years ago

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

kellyi commented 8 years ago

Sounds good. I'll take another look at that PR to see how it's implemented.

mmcfarland commented 8 years ago

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.

kellyi commented 8 years ago

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

kellyi commented 8 years ago

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”.