Added functions
rename_field: simulates a field rename in arcgis
one_in_one_out: ensures that for every input feature there is an output record because ArcGIS tools sometimes create no row if there is "no" value
redefine_nulls: updates null values in output tables to our custom value, like 'NA' (text) or 0, as needed

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Minor updates to assumptions.py
-grooming
-user can now set allowable percent overlap between features

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Moved actions of WetlandsInZones.py into function

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Refined how zonal_tabarea works when dataset is thematic
Added polygons_in_zones.py which will replace both WetlandsInZones.py and LakesInZones.py

WetlandsInZones and LakesInZones had duplicate code and can be one tool, or one script with two wrappers if desired

WetlandsInZones and LakesInZones did not count actual number of lakes/wetlands intersecting zone
They also counted ALL the area of each lake/wetland in zone rather than the area within the zone. If this is desired I can add it to the new function as "contributing area" or similar, but so far it has only been confusing

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Updated flow through overlap_stats.py for thematic datasets

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Moved mosaic function from PreHPCC (step 2) to Ned2Subregion

This is great for disk space management. There is no real reason to store
the unzipped "staged" files, just make the mosaic during the "staging" and delete the unzipped tiles when it's done.

This way, a user can run any number of these as a batch without running out of disk space due to redundant intermediates.

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Configured new polygons_in_zones.py tool to toolbox

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Trivial changes back and forth before I isolate the line density for non overlapping change

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Rewrote PointDensityInPolygons

Old script introduced a bunch of derived columns before they were needed and had a lot of lines dealing with unnecessary field mappings

Old script also produced a shapefile/fc output when we ONLY need tables

Mine just gets Join_Count from the spatial join and does the calcs afterward
Output is a table
Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Changed "Subset Overlapping Polygons" to output the multiple layers to a File GDB

Avoids truncated field names and other small issues with writing these to shapefiles

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Removed Line Density for Non Overlapping Subsets

I have tested ALL of the vector-based tools and they ALL handle overlaps just fine without anything special.

Non-overlapping subsets is only necessary for raster data.

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Added test data in a geodatabase

Uses data inside HU8 04110003
A smattering of data that can be used to demo all Zonal Attribution tools
Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Refactored Zonal Attribution of Raster Data for Overlapping Polygons

Removed duplicated code by rewriting this to depend on zonal_tabarea.py
Added warning when number of output records is fewer than input because of features that are too small for raster resolution
Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Moved missing features warning inside function in zonal_tabarea

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Refactored line density to use new one_in_one_out and redefine_nulls functions

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Added resolution_comparison function to csiutils

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Minor changes to polygons_in_zones

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
color_polygons writes out to an existing File GDB only new

If the user needs a new one they can make it from the GUI

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Minor updates to Toolbox properties, mostly parameters

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>