Small updates to toolbox properties and code after testing on my laptop
Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Fixed Join_Count bug in lakes_in_zones2.py and removed parameter

Previous outputs only had "1" for count values because old Join_Count fields present in inputs
Now the script finds the Join_Count field with the largest integer at the end (the newest) and uses that specificially
User now doesn't need to enter the "area in hectares" field parameter
Added create_temp_GDB to csiutils since I used that code for the second time here
Altered zonal_tabarea to use the new create_temp_GDB function too

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Changed count field from SHORT to LONG in polygons_in_zones

Discovered that problem when I went to count wetlands in large polygons, overflow

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
New code for cumulative watersheds (will be extended to interlake soon)

Previous code was convoluted and difficult to document or update
This is about 1/5th as long and way easier to comprehend
First tests indicate it works exactly the same, further testing needed

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Changing names in toolbox

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Null values will now be 'NA' in CSV exports instead of 'None'

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Added FCode filter to lakes_in_zones2

Not strictly necessary for us because our master layer is already filtered but good to have in there

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Added selection expressions to Point Density and Line Density tools

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Added Streams in Zones wrapper to Line Density

Makes it easier to get all the streams statistics we want at once
Small modifications to Lakes in Zones and Wetlands in Zones during dev

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Added a try/except in zonal_tabarea to allow it to finish faster in some conditions

Before, when I had the problem with using Permanent Identifier as the zone field, I modified the tool to convert the zones to a zones raster that matches the value raster in a temporary geodatabase. Now, the tool ONLY does that if it fails to do Zonal Stats directly. This should let the tool run faster in the 75%+ of cases where that works just fine.

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Added a known bug list and outstanding features todo list

known and outstanding bugs.txt
outstanding feature todos.txt

Discovered an unnecessary warning thrown up when I ran a tool, the output is fine so it's okay to run the tool but I don't know why it issued the warning. This is low priority to me so I decided to add a bugs list, and then I thought to add the features I haven't gotten to, as well.
TauDEMTOESRIFlowDirection now takes multiple inputs

You can run as many as you want at one time and the outputs will all be named automatically and written in the same folder
I thought about simply moving this conversion into the upcoming combined tool "Create Watersheds" but I don't want that tool creating any additional outputs and users will want saved copies of the ESRI flow direction, so separate tool it is

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
burn_streams.py was referencing the wrong intermediate, fixed it

This was a problem introduced in my version, previous outputs from last summer were fine
Noticed the raster cutoff just before the HU8 boundary because of the extent problem I had introduced
all better now

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
whoops, forgot to add new toolbox binary from when I updated TauDEMtoESRIFlowDirection.py

Just has the parameter properties changed for the multivalue input

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

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

Signed-off-by: nicolejeansmith <nicole.j.smith@gmail.com>
Updated GenerateSeeds.py and updated toolbox parameters

But the pour point raster still doesn't have values you can actually connect back to the features
ArcGIS seems to refuse to acknowledge negative VALUEs in rasters and I'm out of ideas at the moment

May have to keep the slow spatial join later

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