|
POST
|
look at 'with' https://stackoverflow.com/questions/1369526/what-is-the-python-keyword-with-used-for#:~:text=2%20Answers&text=In%20python%20the%20with%20keyword,even%20if%20exceptions%20are%20thrown.
... View more
08-03-2020
01:15 PM
|
0
|
2
|
2690
|
|
POST
|
I don't know, That would depend on your inputs, their values, their location in space and a load of other things. IDW only works with what it has, so you might want to examine your data to make sure that input points don't have negative values which represent nodata values
... View more
08-03-2020
01:12 PM
|
0
|
0
|
3059
|
|
POST
|
If this worked in 2.5, I would report to Technical Support. Arcpy can't clear locks... it is well requested item
... View more
08-03-2020
01:10 PM
|
0
|
0
|
5912
|
|
POST
|
From all the ideas....going back at least 9 years https://community.esri.com/search.jspa?q=mac&place=%2Fplaces%2F478947&depth=ALL I wouldn't hold off your next computer purchase in anticipation. It isn't even on the long term list https://community.esri.com/docs/DOC-15230-arcgis-pro-roadmap-july-2020
... View more
08-03-2020
11:09 AM
|
0
|
0
|
1586
|
|
POST
|
I edited your indentation and changed a line to print. Can you give an example of the print statements
... View more
08-03-2020
11:01 AM
|
0
|
2
|
3059
|
|
POST
|
from LAS Dataset To Raster (Conversion)—ArcGIS Pro | Documentation perhaps your raster is an esri grid (ie you didn't specify a *.tif extension and save to a folder) or the dataset is too large to generate a raster table Build Raster Attribute Table (Data Management)—ArcGIS Pro | Documentation I vaguely remember that there are limits on the number of records that can be generated, so you might want to give that a shot to see if you get an error or warning
... View more
08-03-2020
09:25 AM
|
0
|
2
|
15568
|
|
POST
|
From your print statements, this must be in arcmap/python 2.7? Also, your indentation is off and line numbers would be a help /blogs/dan_patterson/2016/08/14/script-formatting
... View more
08-03-2020
09:15 AM
|
0
|
4
|
3059
|
|
POST
|
Are you looking for Zonal Statistics as Table (Spatial Analyst)—ArcGIS Pro | Documentation (in arcmap as well as in Pro) that produces a table based on a zone input file if you want to join to a polygon featureclass which represent your zones
... View more
08-01-2020
07:27 PM
|
0
|
1
|
15568
|
|
BLOG
|
N otebooks The new cool. Everyone wants them. A useful distribution tool for education. Soooo what's new?? We have notebooks now in the Esri fold. Spyder has had them for a while, yet they haven't been championed vocally. Installation is easy. # ---- crank up conda and install in base or a clone wherever Spyder is
(arcgispro-py3) C:\..._path_to...\envs\arcgispro-py3>conda install -c spyder-ide spyder-notebook
Fetching package metadata ...............
Solving package specifications: .
Package plan for installation in environment C:\arc_pro\bin\Python\envs\arcgispro-py3:
The following NEW packages will be INSTALLED:
spyder-notebook: 0.3.0-py_0 spyder-ide
The following packages will be SUPERSEDED by a higher-priority channel:
parso: 0.7.0-py_0 --> 0.7.0-py_0 spyder-ide
Proceed ([y]/n)? y So have a look-see at this visual presentation of Notebooks in Spyder Access within the Notebook console The tech details Edit View Run Kernel More to come....
... View more
08-01-2020
01:06 PM
|
0
|
0
|
1823
|
|
POST
|
delete the" try" line and the last 3 lines dedent the intermediate code by one level and run (ie. without the try-except block) report any error messages that you have If you aren't running a tool you can use print statements or "tweet" them to cover both scenarios def tweet(msg):
"""Produce a message for both arcpy and python
: msg - a text message
"""
m = "{}".format(msg)
arcpy.AddMessage(m)
print(m)
... View more
08-01-2020
09:01 AM
|
1
|
9
|
5375
|
|
POST
|
Did you run a check geometry on the file? Or run a FeatureClassToFeatureClass to get a copy (it runs a repair during the process) The differences are indeed significant and I am wondering if there is a part underneath another part. The only way to check for that is to select each shape on the map one at a time and check what the outline looks like relative to what is expected
... View more
08-01-2020
08:51 AM
|
0
|
2
|
2961
|
|
POST
|
did you get rid of the try-except block and keep del cur and f.close lines or did you keep the try-except and move them outside of the try-except block?
... View more
08-01-2020
01:48 AM
|
1
|
12
|
5375
|
|
POST
|
It is hard to tell from the figure, are there 9 or 10 areas after the split? (see the very middle of the figure) And was the last entry in the table the total?
... View more
07-31-2020
02:27 PM
|
0
|
7
|
2961
|
|
POST
|
get rid of the 'finally' section... in fact there is no reason for your code to be in a try-except block, you will get a useful error message without it
... View more
07-31-2020
01:17 PM
|
1
|
1
|
5375
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 16 hours ago | |
| 1 | a week ago | |
| 1 | a week ago | |
| 1 | a week ago | |
| 1 | a week ago |