|
POST
|
Phil, Yes, there's one additional step I neglected. You'll need the ArcGIS Pro bin directory to be registered as part of the path that Pro sees. You can do this a few ways, perhaps the simplest is to add it to your global path (C:\Program Files\ArcGIS\Pro\bin). If you'd rather not modify the global path, you can also add it to the lib\site.py file for the environment you created, or add another pth file, let's call it ArcGISProBin.pth: import os; import sys; d = r'c:\Program Files\ArcGIS\Pro\bin'; os.environ["PATH"] = r"{};{}".format(d, os.environ["PATH"]) This is still a pain point and something we expect to improve in the near future. Thanks, Shaun
... View more
04-03-2017
01:02 PM
|
1
|
1
|
9013
|
|
POST
|
Hello Adam, If I understand your question, as you probably found there isn't a single geoprocessing tool that does exactly what you're looking for. It sounds like you have origin-destination pairs, and one (or more) weighted barrier datasets, which presumably take into account the ecological and oceanographic barriers relevant for your species of interest. You mentioned that you've tried to use R entirely to do this, but hit resource limitations. I don't know enough of the specifics of your problem to give you an exact answer, but here are a few things that may be relevant: 1. You can use the Cost Path tool with individual rasters and not do the entire CSV at once. Basically, you'd figure out how to do it once for a single origin-destination pair, then write a Python script (or use Model Builder) to iterate over the rows in your CSV, and run this analysis for each origin-destination pair within your dataset. Depending on the size of your raster and the number of OD pairs, this may take some computing time. 2. There are a variety of tools which integrate with ArcGIS which at least partially overlap with what you're asking. Circuitscape is focused on a single global optimization problem, but again could be used in an iterative fashion as mentioned above, and scales to quite large problems. MGET is another tool which is quite useful in this space, it combines R, ArcGIS and Python to solve complex modeling problems. It has tools, for example, for larvae dispersion. Overall, it sounds like a general modeling problem, but if you post details we can try to help you through them. Depending on the size of your raster, you may also want to look at alternative representations of your connectivity dataset. For example, in the past I've used a pruned network model to represent global ocean connectivity at a relatively fine scale. Building this network initially takes some time, but the advantage is it then makes computing a route within the space very inexpensive and easily scalable. Cheers, Shaun
... View more
04-03-2017
12:42 PM
|
1
|
4
|
2197
|
|
POST
|
Hello Adam, What versions of R and ArcGIS are you using? What kinds of problems would you like to solve? Let us know and we can figure out some good next steps. Cheers, Shaun
... View more
04-03-2017
12:17 PM
|
0
|
0
|
796
|
|
POST
|
OK, if you see the same behavior again, post it to GeoNet and we can see what's going on. Cheers, Shaun
... View more
03-23-2017
09:01 PM
|
1
|
0
|
1989
|
|
POST
|
Yes, you can make any number of environments, there's no constraints with regards to licensing. They can even operate at the same time, provided you have sufficient resources available. On the cloning, it sounds like perhaps conda had an issue making a copy of the environment. As a quick and dirty alternative, you could try copying the directory and renaming it to something else, that should work (though once we have a robust way of making environments with ArcPy included, that'll be preferable). Cheers, Shaun
... View more
03-23-2017
08:41 PM
|
0
|
0
|
3368
|
|
POST
|
Phil, The installation that comes with Pro includes Miniconda, you can create environments from within it which include all of the ArcGIS Pro dependencies by running conda create --name myenv --clone arcgispro-py3 But if you have specific needs which require an external Miniconda, yes, you're right. I neglected an additional step that is needed with Pro 1.3 and 1.4. The C extensions which drive Pro would also need to be copied (in addition to the .pth file). Assuming Pro is installed into Program Files, you could use this batch script: set DEST=c:\Anaconda\envs\myenv\lib\site-packages
cd "c:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages"
copy arcgisscripting.pyd %DEST%
copy gapy.pyd %DEST%
copy arcpy_wmx.pyd %DEST% Let me know if either of the approaches above work for you, or if you have any further problems creating new environments which talk to Pro. We're in the process of revamping this so these steps won't be necessary in a future release. Cheers, Shaun
... View more
03-23-2017
11:56 AM
|
1
|
7
|
3368
|
|
IDEA
|
The netCDF4 module is included with ArcGIS starting iwth the 10.3 release, and with all versions of ArcGIS Pro.
... View more
03-21-2017
02:00 PM
|
0
|
0
|
1002
|
|
POST
|
It works fine with spaces, if you're running into issues, post a code snippet and we can take a look. Here's an example of an import which works fine on my end: arcpy.ImportToolbox(r'z:\pyt with spaces\more spaces.pyt')
# <module 'touche'>
... View more
03-21-2017
01:25 PM
|
1
|
2
|
1989
|
|
POST
|
Bidhyananda, I'm able to install a wide variety of packages within the Pro environment, including many other geospatial ones. Can you name any particular packages that aren't working for you? If you have an existing external conda that you'd prefer to use, you can still use a .pth based cross-linking to achieve the same effect as before. As Dan mentioned in an earlier post on this thread, you just need to point it at the relevant locations within the Pro install to pick up (a) the ArcGIS Pro bin directory and (b) the locations of the ArcPy install. In a future release, we will make this simpler, but the same approach you've been using for ArcMap 10.x will work with Pro as well if you'd prefer not to use the Conda environment included with Pro.
... View more
03-21-2017
01:09 PM
|
1
|
9
|
3063
|
|
IDEA
|
All of the packages we use for ArcGIS Pro (and Server) are now uploaded to our Anaconda Cloud channel, at https://anaconda.org/esri/. You can use them in Pro, or use them in an external conda environment. If you have other Esri Python packages that aren't there which you'd like to see, let us know.
... View more
03-21-2017
12:57 PM
|
0
|
0
|
1396
|
|
POST
|
Rebecca, Thanks for the details on your approach. Note that we also have an open bug on the unintuitive lack of "automatic refresh" issue you mentioned. We initially wanted to ensure that no remote request was made unless explicitly requeste by the user, but overall I think this is more likely to cause problems as you mentioned.
... View more
03-18-2017
10:18 PM
|
1
|
0
|
5645
|
|
POST
|
Older spatial analyst tools use GRID files as intermediate data. My guess is, the output location that it's trying to write these two when using background geoprocessing is invalid. Try adding something like arcpy.env.workspace = r"c:\workspace"
arcpy.env.scratchWorkspace = r"c:\workspace" In the initialization of your script, where the location is a) a short name b) contains no spaces. Cheers, Shaun
... View more
03-18-2017
10:13 PM
|
1
|
0
|
2776
|
|
POST
|
How did you install kivy? It looks like it didn't install correctly, and is missing the necessary C-extensions (here, Cython based) in order to run.
... View more
03-18-2017
10:04 PM
|
1
|
0
|
1400
|
|
POST
|
Bidhyananda, The issue of the notebook shortcut not working has been added as a bug, BUG-000103143. You should still be able to access the notebooks from the command line, just not from the shortcut directly. Cheers, Shaun
... View more
03-14-2017
09:44 PM
|
1
|
0
|
3063
|
|
POST
|
Rebecca, The issue with the shortcut not working is a bug, and I see that a bug has been filed with its description. You can still run the notebook from the environment prompt, but that is annoying that the shortcut isn't working directly. When you said that you opened up a "Python command prompt", do you mean the Python window that's included within Pro? The error you're getting makes it look like you're at a Python interepreter prompt, which would cause that issue. To install the ArcGIS API for Python, instead you'll want to run the shortcut in the Pro group called "Python command prompt", then run the command you included. You shouldn't need to install another Anaconda, it'll probably make things more complicated than necessary -- you can also use the Python backstage from Pro (Project > Python) to install the API without having to use any command line tools at all. Cheers, Shaun
... View more
03-14-2017
05:31 PM
|
1
|
2
|
5645
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-24-2025 09:10 PM | |
| 1 | 08-12-2022 10:14 PM | |
| 1 | 05-05-2025 10:56 AM | |
| 1 | 04-04-2025 09:03 PM | |
| 1 | 02-09-2023 10:10 PM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|