POST
|
I have a problem codding. I wonder if you could give me a hand with this: I have this list of tuples: [['060710080013011', 9, 155], ['060710080013011', 9, 156], ['060710080013011', 9, 157], ['060710080013011', 9, 164], ['060710080013011', 9, 165], ['060710080013011', 9, 166], ['060710080013011', 9, 170], ['060710080013011', 9, 171], ['060710080013011', 9, 172], ['060710080013033', 8, 86], ['060710080013033', 8, 90], ['060710080013033', 8, 91], ['060710080013033', 8, 97], ['060710080013033', 8, 99], ['060710080013033', 8, 100], ['060710080013033', 8, 103], ['060710080013033', 8, 105], ['060710080021000', 10, 87], ['060710080021000', 10, 88], ['060710080021000', 10, 89], ['060710080021000', 10, 92], ['060710080021000', 10, 93], ['060710080021000', 10, 94], ['060710080021000', 10, 95], ['060710080021000', 10, 96], ['060710080021000', 10, 98], ['060710080021000', 10, 102]] So the first value is an ID y the second value is how many times this id is appearing on the list. The problem is the following. When the second value is greater than 7, I need to change the values in every second item in each tuple here the example: [['060710080013011', 7, 155], ['060710080013011', 7, 156], ['060710080013011', 7, 157], ['060710080013011', 7, 164], ['060710080013011', 7, 165], ['060710080013011', 7, 166], ['060710080013011', 7, 170], ['060710080013011_2', 2, 171], ['060710080013011_2', 2, 172]] As you can see, instead of having 9 in all the values, I have 7 and 2, and I have to change the id of the left 2 adding a '_2' at the end. Basically, the rule is, id the value is greater than 7, then divide the value by 7. and put the residual in the rest of values. It could be the case that a value has 15 appearances. In that case, we will have 2 groups of 7 and one of 1 Please, I have been trying to solve this a lot of time, I can not find a solution.
... View more
05-24-2018
01:19 PM
|
0
|
2
|
511
|
POST
|
Yes, Dan, The last pro update solve that. Thank you for your help!
... View more
05-24-2018
01:18 PM
|
0
|
1
|
1038
|
POST
|
Yes, that is the weird part, I have examined my python code using the analyze tool for Pro but it did not work. Thank!
... View more
05-16-2018
09:50 PM
|
0
|
4
|
1038
|
POST
|
Hello Dan, Thank you for your help! I have checked my toolbox but I don't find any relative reference. All the python scripts are inside the project folder, so I don't know why it does not find them or consolidate them.
... View more
05-16-2018
06:36 PM
|
0
|
0
|
2653
|
POST
|
Was the toolbox moved prior to consolidating? What do you mean with moved prior consolidating? I have created a new toolbox and copy all the python tools to the new one, however, it did not work. Have you checked the script for errors or dependencies? I have checked it using the tool Is there only one script in the toolbox? I have 6 phyton tools Analise tool for pro. I showed me some error in my python scripts that I fixed. Now It did not show me anything else. However, it still does not work. Any system scripts? What do you mean by system scripts? Other than the python tools, I don't have anything else. Also, I have tried to use the consolidate project tool. I did not work.
... View more
05-16-2018
03:54 PM
|
0
|
2
|
2653
|
POST
|
Hi Joane, I have the same problem with my toolbox, however, I do need to have the toolbox in my project. Could you help me, please?
... View more
05-16-2018
02:42 PM
|
1
|
0
|
2206
|
POST
|
Hello Dan , There is still a problem with the consolidation. I am still looking for a way to consolidate the toolbox inside the project.
... View more
05-16-2018
02:17 PM
|
0
|
4
|
2653
|
BLOG
|
Hello James, I am still working on our survey for the CDC's CASPER methodology. Now I am facing a problem that I think you could help me to solve. The first one is the following: As part of the last process in CASPER, the end user will need to add 1 field in the feature service used by survey123. Since CASPER is aimed to extrapolate the results of the surveyed area to the whole community, they need to calculate the weighting of each surveyed unit and then extrapolate the result for the whole community. I am attaching a couple of pictures that will let you understand cleaarly what they need to obtain. Right now I have created a python tool(ArcGIS Pro) that automate that process, adding the field and calculating the weighing and finally exporting the result as an excel file to calculate the frequency ( This is a tool in a software called Epi Info (A software made by the CDC). (Frequency | Analysis Gadgets | Visual Dashboard | User Guide | Support | Epi Info™ | CDC ) However, when I export the feature serves as an excel file I observe that each option "other" was store as an independent field. That is very problematic since I need to calculate the frequency of every value per field. (I am attaching an image) Is there any way to integrate the "other" options to each field that they belong originally? I would really appreciate your help guys!
... View more
05-10-2018
01:31 PM
|
0
|
0
|
1603
|
POST
|
Hi guys, I have an error when I try to consolidate my project package. It already used the Analyse pro tool and fixed the python error, but still, have this problem.
... View more
04-15-2018
12:27 AM
|
0
|
15
|
4335
|
POST
|
Hello, I need to export just the geoprocessing history from my ArcGIS project, is there any file that has all that information? Have a great day!
... View more
04-12-2018
04:06 PM
|
0
|
2
|
1488
|
Title | Kudos | Posted |
---|---|---|
1 | 05-16-2018 02:42 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|