Update how to setup authored by Jakob Grahn's avatar Jakob Grahn
...@@ -31,11 +31,7 @@ i.e. the path to where this repository was downloaded (in step 1) ...@@ -31,11 +31,7 @@ i.e. the path to where this repository was downloaded (in step 1)
## 2. Create ArcGIS Conda environment: ## 2. Create ArcGIS Conda environment:
Open `Start > ArcGIS > Python Command Prompt`: Open `Start > ArcGIS > Python Command Prompt`: <details><summary>Show screen shot</summary>[[resources/how-to-setup_python-command-prompt.png]]</details>
<details>
<summary>Show screen shot</summary>
[[resources/how-to-setup_python-command-prompt.png]]
</details>
In the command prompt, type (where `C:\path-to-vpi-codes\` must be changed to the path to the vpi source code as of step 1): In the command prompt, type (where `C:\path-to-vpi-codes\` must be changed to the path to the vpi source code as of step 1):
```bash ```bash
...@@ -44,33 +40,19 @@ conda create --clone arcgispro-py3 --name vpi ...@@ -44,33 +40,19 @@ conda create --clone arcgispro-py3 --name vpi
conda env update --name vpi --file conda\environment_arcgis.yml conda env update --name vpi --file conda\environment_arcgis.yml
``` ```
Open ArcGIS Pro, go to `Project > Python > Manage Environments` Open ArcGIS Pro, go to `Project > Python > Manage Environments`: <details><summary>Show screen shot</summary>[[resources/how-to-setup_python-package-manager.png]]</details>
<details>
<summary>Show screen shot</summary>
[[resources/how-to-setup_python-package-manager.png]]
</details>
Activate the environment called `vpi`:
<details>
<summary>Show screen shot</summary>
[[resources/how-to-setup_manage_environments.png]]
</details>
Activate the environment called `vpi`: <details><summary>Show screen shot</summary>[[resources/how-to-setup_manage_environments.png]]</details>
Restart ArcGIS Pro. Restart ArcGIS Pro.
## 3. Add the toolbox to your project ## 3. Add the toolbox to your project
After restarting ArcGIS Pro, go to the catalog pane, left-click `Toolboxes`, click `Add Toolbox` and select the file: After restarting ArcGIS Pro, go to the catalog pane: <details><summary>Show screen shot</summary>[[resources/how-to-setup_add-toolbox.png]]</details>
Left-click `Toolboxes`, click `Add Toolbox` and select the file:
``` ```
C:\path-to-vpi-codes\vpi_arcgis\vpi.pyt C:\path-to-vpi-codes\vpi_arcgis\vpi.pyt
``` ```
<details>
<summary>Show screen shot</summary>
[[resources/how-to-setup_add-toolbox.png]]
</details>
The 2D-InSAR VPI toolbox should appear and be ready for use. The 2D-InSAR VPI toolbox should appear and be ready for use: <details><summary>Show screen shot</summary>[[resources/how-to-setup_added-toolbox.png]]</details>
<details>
<summary>Show screen shot</summary>
[[resources/how-to-setup_added-toolbox.png]]
</details>