|
POST
|
You installed Pro after your miniconda I suspect. spyder will use the python and use the packages in that path. It isn't great/best to have separate miniconda's, just make sure that you activate the correct environment if you plan to switch back and forth (or if you are in a multi-machine environment... best yet is keep them totally separate )
... View more
08-14-2020
02:54 PM
|
1
|
2
|
4275
|
|
POST
|
If you have multiple python versions, fixing the shortcut is the key replace arc_pro with your install folder Target C:\arc_pro\bin\Python\envs\arcgispro-py3\pythonw.exe "C:\arc_pro\bin\Python\envs\arcgispro-py3\Scripts\spyder-script.py" Start in C:\arc_pro\bin\Python\envs\arcgispro-py3\Scripts Somewhat dated, but still applies /blogs/dan_patterson/2017/07/01/arcgis-pro-2-creating-desktop-shortcuts
... View more
08-14-2020
01:56 PM
|
1
|
4
|
4275
|
|
POST
|
Contour—ArcGIS Pro | Documentation examine the options to get the result your want
... View more
08-14-2020
11:52 AM
|
1
|
0
|
2261
|
|
POST
|
Brian E Nothing is automagic and from your description, you must have done something else since Excel to Table wouldn't produce a shapefile, which is what you have in your folder. You might want to review the options that are available for setting up a project from the Project backstage, then select options. In the example below, I save all my project in one location. Each project has a unique folder and I create a new gdb for each project and a new toolbox. There are other options there as well which should be explored. Always confirm the first time where things are going to ensure that the expected "defaults" are being used
... View more
08-14-2020
09:19 AM
|
0
|
1
|
3177
|
|
POST
|
One option is to get the path to the running script. import sys
script = sys.argv[0] # ---- the running script If you know where the script is relative to the toolbox, then you can work from there. For instance, if you simply store the script(s) in the same location as the *.tbx, then you just parse the path out of the above. If the script is located in a folder relative to the toolbox, then you parse of that folder name And then there is ListToolboxes—ArcGIS Pro | Documentation just limit the wildcard to your toolbox name
... View more
08-14-2020
09:07 AM
|
1
|
0
|
2545
|
|
POST
|
According to What's new in ArcGIS Pro 2.3—ArcGIS Pro | Documentation Styles New color schemes have been added to the ArcGIS Colors system style. A new scientific color scheme named cividis has been added. Cividis is perceptually uniform in hue and brightness, increasing in brightness linearly. It was designed specifically for those with color vision deficiency. For more information about this color scheme, see https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0199239. The new cividis scientific color scheme is for better color blind readability. Now, make sure you click on the drop down to see the colors and check on Show Names and Show All There might be more, but that will get you started hopefully
... View more
08-14-2020
08:47 AM
|
2
|
0
|
18066
|
|
POST
|
I assume that you are trying to reinstall arcgis pro and have uninstalled previous installations. If so, and you have already run the *.exe file successfully once, then locate the *.msi in the extracted folder and run it. The *.exe extracts a *.msi and *.cab file into a sub folder in your download folder. Anything other than a valid first time install by running the *.exe will most likely cause failure.
... View more
08-14-2020
02:39 AM
|
0
|
0
|
2423
|
|
POST
|
It may be a bad download. Did you try to download it again? (Download to a simple, short folder path, eg c:/Temp)
... View more
08-14-2020
02:26 AM
|
0
|
2
|
2423
|
|
POST
|
A little light reading before someone else weighs in https://community.esri.com/people/danretired/blog/2020/08/13/conda-the-dependency-trail
... View more
08-13-2020
05:37 PM
|
0
|
0
|
5824
|
|
POST
|
maybe you have to emulate a codeblock and expression Calculate Field (Data Management)—ArcGIS Pro | Documentation exp = "do_stuff(!area_acres!, summed_total)"
codeblock = """
def do_stuff(area, tot):
return area/tot * 100"""
... View more
08-13-2020
03:44 PM
|
2
|
1
|
5838
|
|
POST
|
Or for something completely different... out to *.dbf or *.csv import numpy as np
from arcpy.da import NumPyArrayToTable
#
ids = ['D36528', 'D36528', 'D36528','D36532', 'D36532',
'D36521', 'D36522','D36525', 'D36525', ]
# ---- numpy magic
u, c = np.unique(ids, return_counts=True)
dt = np.dtype([("Class", "<U7"), ("Count", "i4")])
uc = np.asarray(list(zip(u, c)), dtype=dt)
# ---- output to dbf and csv
NumPyArrayToTable(uc, "c:/temp/out.dbf")
np.savetxt("c:/temp/out.csv", uniq_counts, fmt="%7s, %3s",
comments="", header="Class, Counts") The csv as an example Class, Counts
D36521, 1
D36522, 1
D36525, 2
D36528, 3
D36532, 2 You can add the *.csv or *.dbf to arcmap or Pro, or join to an existing table
... View more
08-13-2020
03:33 PM
|
1
|
0
|
3905
|
|
POST
|
e = float(!area_acres!)/float(summed_total) * float(100) Will return a correct numeric value, now if the expression needs to be quoted, add the quotes to this. You had too many
... View more
08-13-2020
01:50 PM
|
1
|
3
|
5838
|
|
POST
|
As an FYI.... export more folders... If you start using raster functions and Pro's Jupyter notebooks, then you will get more. A good reason to create a folder to store your project in
... View more
08-13-2020
09:12 AM
|
5
|
0
|
1996
|
|
BLOG
|
C onda Packages. Stuff depends on other stuff. A brief summary of packages and package management. Clone. Supposedly keeps stuff from getting muddled when you import the wrong version of a package which causes another package to complain loudly. Versions So you want the latest and greatest... maybe the package version causes problems with other packages. Python 3.6.10... why is ArcGIS Pro using that version? Laziness? Not likely. More probably a required package doesn't work with python 3.7 or 3.8. Some packages support other versions of python, for instance, but not all do. Some packages are a bit slower to move with forward. Some packages move in step with other packages so multiple updates will occur in related packages at the same time. How do you keep track of all this stuff? That is what conda is supposed to be used for. How many deep learning threads have you seen on GeoNet where there are issues? Most related to outdated versions of Pro, or a version of Pro not synching with the correct version of the required package, or a packaged is upgraded to the latest but you haven't upgrades the support framework. Stick with simple learning first. To add to the muddle, how about a little script that allows you to produce 3 tables in Pro so that you can examine the interdependencies of packages in your conda environment. There are variants of how to examine the dependency tree I will present one that reads the *.json files in your conda-meta folder (bet you didn't know you had one). Here is what you can get Package, filename and dependencies The Filename column could be split out on the "-" should you wish to determine the installed version and where it was downloaded from. The Dependencies field either has None, a single package name, or a semicolon delimited list of needed packages. Package and required by Now this can be a bit confusing since it appears some packages require Pro to work... they don't, they are just package versions used by the Package. But for the most part, you can cruise through the list trying to figure out what depends on what and how many things may depend on the same package. A useful eye-glazer. Package dependency counts To make it simple to read, I will just show the sorted table of the dependencies in descending order. Who knew that vc was top of the list. And surprise! 33 need python, but wait, there is 23 and 7 required for variants of python. This enables you to fine-tune dependency version. Amazingly, not all packages indicate that they are dependent on python even though they are written in python. Hmmm I wonder how many other things leave out dependencies from their list. Spyder My favorite Python IDE and my go-to for Notebooks when I don't need the webby versions or the Pro version. Seemingly a lot of dependencies, but many are shared with variants of notebooks or are related to formatting, fonts, syntax highlighting, code completion and linting (aka... cool coding stuff ) So give pkg_info_json(folder=None) a run. Eventually I will get around to mapping this dependency space using networkx as suggested by a couple of blogs. Could be fun. So next time you want to mess with your clone or you main/base, see if you can unpackage what you have done. That is why there is the ability to go back in time to a simpler say with conda install --revision 1 The number 1 being replaced with the pre-goof state. Have fun, be safe.
... View more
08-12-2020
07:58 PM
|
2
|
1
|
2939
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 1 | Friday | |
| 1 | Wednesday | |
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago |