POST
|
Thanks for the suggestion but as far as I know summary statistics would only work if there was one maximum for each group. Some groups have multiple local maxima that I need to find also.
... View more
10-22-2014
02:04 PM
|
0
|
0
|
404
|
POST
|
I'm still a beginner with ArcPy and I'm wondering how I can write a script that can iteratate through a table and find the LOCAL maxima of each group I've spent a lot of time looking into the arcpy.da.UpdateCursor module but I can't figure out how to go group by group and look at values in more than one row at a time. Can this even be done? I've also looked at converting the table into a NumPy array but I am also lost there. I've included this example to illustrate what I'm looking for. I am thinking using the update cursor to change the values of Field 03 from 0 to 1 for the records that represent local maxima would be helpful but I'm sure there are other ways to go about this. Field 01: Group(Integer) Field 02: Length(Double) Field 03: For Flagging desired fields(integer) ID Field 01 Field 02 Field 03 01 10 07.0 0 02 10 09.0 0 03 10 03.0 0 04 10 11.0 0 05 12 18.0 0 06 12 16.0 0 07 12 02.0 0 08 12 07.0 0 09 12 04.0 0 Results would be: ID Field 01 Field 02 Field 03 02 10 09.0 1 04 10 11.0 1 05 12 18.0 1 08 12 07.0 1 Thank you for any help.
... View more
10-21-2014
02:10 PM
|
0
|
2
|
1520
|
POST
|
Hi Drew, Do you have any suggestions for workarounds when combining feature classes, such as with the merge or append tool. For example if I have 2 feature classes, each with one feature that has a document attached and merge them into a new feature class, as noted the attachments are lost. However, if I re-add the attachments to the _ATTACH table using the append tool, the relationship class says they both belong to the feature with ObjectID = 1. That is to say, the first record in the attribute table gets both attachments, while the 2nd gets none. Similarly, If I append one dataset to the other, the target's attachments are maintained, but the input's are not. Append the input's _ATTACH table to the targets again assigns the input's attachments to the target's feature with ObjectID = 1. Any ideas on how to work around this (especially with a scaleable solution), would be greatly appreciated.
... View more
05-21-2013
01:30 PM
|
0
|
0
|
779
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|