POST
|
I am creating a python tool that will be used by multiple people, part of the python tool I am creating I want to run a Statistics_analysis report in_memory. I don't need to save it (just view it once) and our departments shared folder location has spaces in it name so I couldn't save it here even if I wanted to since you can't save info tables to a path with any spaces. The tool works perfectly except for the fact the layer just disappear once the tool is complete. arcpy.Statistics_analysis(r'GROUP\POINTS\GPS Pipe Point', r"in_memory\MN__Table", 'COLLECTIONDATE FIRST;COLLECTIONDATE LAST', 'GPSNUMBER')
... View more
05-30-2019
01:08 PM
|
0
|
2
|
417
|
POST
|
I am not sure something like this would work, I am running this script on 200,000+ gps points. I want to create some type of loop that looks at each point and compares the spar depth to the spar depth of the point collected before it and the point collected after it using the GISID to determine relationship. My end goal is to select all points that has a spar depth that has a +-20% difference compared to the points collected before/after it.
... View more
09-07-2018
01:40 PM
|
0
|
1
|
1648
|
POST
|
I have a large group of gps points that was collected. I want to select all points that have a spar depth that is greater or less than 20% that of the points that came before or after it (based on the GISID). GISID Spar Depth 2022 4.035 2023 4.066 2024 3.604 2025 3.576 2026 4.593 2027 2.690 2028 2.960 2029 4.59 import arcpy counter =0 with arcpy.da.SearchCursor('GPS Gas Main Pipe Point',[ 'GISID', 'SPAR_DEPTH']) as cursor: for row in cursor: MSDepth = row[1] if counter > 0: diff = abs(MSDepth-oldMSDepth) if diff > 20: print('GISID {}'.format(row[0])) oldMSDepth = row[1] oldGISID = row[0] counter+= 1
... View more
09-07-2018
11:55 AM
|
0
|
18
|
2530
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|