You're right for that portion, a simple spatial join got me to the next portion of my work flow. I need to sum all of the lengths of the Flowlines that have the same HUC 12 ID value. For example, one HUC has anywhere between 1 and 50+ flowlines in it and i need to sum their lengths and store it in a field in the attribute table and do that for all of the unique HUC 12 values. I've been trying to find a function to help with this, sounds like Excels SUMIF function however my dataset is too much to be exported into excel. Can this tactic be implemented in python in ArcGIS Pro
The classic geoprocessing set-based approach would be to use Summary Statistics—Help | ArcGIS Desktop and then join the output table back to the original to update a field with the values. There is a cursor based approach, but I don't have time to dive into the specifics at the moment.
Excellent, I was able to do what I needed with your help so far with this linear dataset and the polygon subwatershed. Now I must perform a similar analysis using the same HUC 12 polygon file but this time also using a raster dataset, specifically the NLCD (National Land Cover Database) 2016. I have already masked it down to the extent of the HUC12 polygon shapefile and reclassified the values to ones that are required of me.
Not sure this will fall under the same Python stuff I was thinking of doing before but maybe you can still help me out.
So, there are 3 classes being displayed in the raster data set, I must find the % area of 'Forest', 'Agriculture', 'Urban', and 'Other' within each unique subwatershed (polygon dataset). Each cell has a 30m by 30m size and if I could just find the could of each different value in the polygon then it could be done.