Changes
Page history
jakob created page: how to setup
authored
Dec 03, 2019
by
Jakob Grahn
Show whitespace changes
Inline
Side-by-side
how-to-setup.md
0 → 100644
View page @
6a6f6875
Below are step-by-step instructions for setting up the 2D-InSAR VPI ArcGIS toolbox.
## 1. Download source codes:
Download this repository to a path of your choice, from now on referenced to as
`C:\path-to-vpi-codes\`.
<!---
## 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 field `
Variable value
` type:
`
``
C:
\p
ath-to-vpi-codes
\
```
i.e. the path to where this repository was downloaded (in step 1)
-->
## 2. Create ArcGIS Conda environment:
Open `Start > ArcGIS > Python Command Prompt` and go to the path to where this repository was downloaded (in step 1), i.e. type:
```
bash
cd C:
\p
ath-to-vpi-codes
\
```
Then type:
```
bash
conda create --clone arcgispro-py3 --name vpi
conda env update --name vpi --file conda
\e
nvironment_arcgis.yml
```
Open ArcGIS Pro, go to `Project > Python > Manage Environments` and activate the environment called `vpi`. Restart ArcGIS Pro.
## 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:
```
C:
\p
ath-to-vpi-codes
\v
pi_arcgis
\v
pi.pyt
```
The 2D-InSAR VPI toolbox should appear and be ready for use.