Update how to setup authored by Jakob Grahn's avatar Jakob Grahn
Below are step-by-step instructions for setting up the 2D-InSAR VPI ArcGIS toolbox.
## 1. Remove old installation:
If you have an older version of the vpi-toolbox installed already, remove the toolbox from ArcGIS:
## 0. Update ArcGIS:
Make sure you have updated ArcGIS to 2.5 or higher.
## 1. Download source codes:
[Download](https://gitlab.itek.norut.no/jakob/vpi-toolbox#releases) the VPI toolbox and unzip it to a path of your choice, from now on referenced to as `C:\path-to-vpi-codes\`.
Also, remove the old vpi conda environment, by first open `Start` > `ArcGIS` > `Python Command Prompt`:
<details><summary>Show screen shot</summary>[[resources/how-to-setup_python-command-prompt.png]]</details>
<!---
## 2. Update/create PYTHONPATH environment variable:
Click `Start`, type:
```
edit the system environment variables
```
and press Enter. Click `Environment variables...`. If the variable `PYTHONPATH` exists in the list:
- Click `Edit...`
- Click `New`
- Type the path to where this repository was downloaded (in step 1).
If the variable `PYTHONPATH` does not exist in the list:
- Click `New...`
- In the field `Variable name` type:
```
PYTHONPATH
In the command prompt, type:
```bash
conda deactivate
conda remove --name vpi --all
```
- In the field `Variable value` type:
```
C:\path-to-vpi-codes\
```
i.e. the path to where this repository was downloaded (in step 1)
-->
## 2. Update ArcGIS:
Make sure you have updated ArcGIS to 2.5 or higher.
## 3. Download source codes:
[Download](https://gitlab.itek.norut.no/jakob/vpi-toolbox#releases) the VPI toolbox and unzip it to a path of your choice, from now on referenced to as `C:\path-to-vpi-codes\`.
## 2. Create ArcGIS Conda environment:
## 4. Create ArcGIS Conda environment:
Open `Start` > `ArcGIS` > `Python Command Prompt`: <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):
......@@ -49,7 +34,7 @@ Activate the environment called "vpi": <details><summary>Show screen shot</summa
Restart ArcGIS Pro.
## 3. Add the toolbox to your project
## 5. Add the toolbox to your project
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:
......@@ -57,5 +42,4 @@ Left-click `Toolboxes`, click `Add Toolbox` and select the file:
C:\path-to-vpi-codes\vpi.pyt
```
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>