Python package for analysis of (InSar) data cubes
Project description
InsarViz is a project dedicated to the visualisation of InSar data.
The ts_viz app is designed to visualize and interactively analyze time-series (datacubes) from InSAR data processing chains.
The full documentation is available here:
https://deformvis.gricad-pages.univ-grenoble-alpes.fr/insarviz
Installation
If you would like to be able to modify the code or use a beta version, follow instead the Developer installation below.
Set up the environment
We recommend you to install the InsarViz tool in a virtual environment (an independent package installation, so that the package versions required by InsarViz do not mess up with your own installation).
With Anaconda
If you have installed the Anaconda distribution (for example Miniconda). If you are using Windows, open an Anaconda Powershell Prompt. Create a conda environment (InsarViz requires Python >= 3.9):
conda create -n insarviz-env python=3.9
And then activate it:
conda activate insarviz-env
Without Anaconda
Without Anaconda, create a Python virtual environment (InsarViz requires Python >= 3.9):
python3 -m venv path_to_venv
And then activate it:
source path_to_venv/bin/activate
Install
Installing InsarViz in a virtual environment (activate it first), or system-wide, is just a one-line command:
pip install insarviz
If you already installed InsarViz before and only want to update it, run this command instead: .. code-block :: bash
pip install insarviz -U
Check your installation
You can check your installation by doing (first activate the virtual environment if you used one):
ts_viz --help
This should print the help message. If not, your install failed.
Run InsarViz
Simply run InsarViz from the following command line (first activate the virtual environment if you used one):
ts_viz
You can provide directly the path of a file to open (an Insar datacube or an InsarViz project) using the -i option:
ts_viz -i path_to_file
Debug
If the install prompts an error, try updating pip:
python3 -m pip install --upgrade pip
If you get errors mentioning rasterio, try:
python3
>> import rasterio
If this fails with an error mentioning that rasterio cannot find libgdal.so.XX, you should try changing the version of GDAL you are using. InsarViz has rasterio (https://rasterio.readthedocs.io) as dependency. Rasterio depends upon the GDAL library (https://gdal.org) and assumes gdal is already installed. We recommend using version 1.3.10 of rasterio which is compatible with GDAL >= 3.1 (on Linux, use the command gdalinfo –version to figure out which version of gdal you have).
Developer installation
Follow this section instead of the Installation section if you would like to be able to modify the code or use a beta version.
Download source code
Download the source code using git (first navigate to the destination folder):
Without a gitlab account:
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/deformvis/insarviz
With a gitlab account (ssh):
git clone git@gricad-gitlab.univ-grenoble-alpes.fr:deformvis/insarviz.git
Note that you can specify a branch using the option -b, for example the beta branch: .. code-block :: bash
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/deformvis/insarviz -b beta
Use pdm to install
We recommend using pdm (https://pdm-project.org/) to manage the dependencies and install InsarViz for developers. We provide lockfiles for Python versions 3.9 and 3.12, so you will create a virtual environment using one of those Python versions. First navigate inside the root of the cloned folder, then:
With Anaconda
conda create -n insarviz-env-3-9 python=3.9.19
conda activate insarviz-env-3-9
pip install pdm
pdm use -f "$(conda info --base)/envs/insarviz-env-3-9"
pdm install --lockfile insarviz-py39.lock --frozen-lockfile
or
conda create -n insarviz-env-3-12 python=3.12.3
conda activate insarviz-env-3-12
pip install pdm
pdm use -f "$(conda info --base)/envs/insarviz-env-3-12"
pdm install --lockfile insarviz-py312.lock --frozen-lockfile
Without Anaconda
python3 -m venv path_to_pdm_venv
source path_to_pdm_venv/bin/activate
pip install pdm
pdm venv create 3.9.19 -n venv_3_9
pdm install --lockfile=insarviz-py39.lock --venv==venv_3_9 --frozen-lockfile
or
python3 -m venv path_to_pdm_venv
source path_to_pdm_venv/bin/activate
pip install pdm
pdm venv create 3.12.3 -n venv_31_2
pdm install --lockfile=insarviz-py312.lock --venv==venv_3_12 --frozen-lockfile
Run InsarViz
With Anaconda
Simply activate the installation environment then: .. code-block :: bash
ts_viz
Without Anaconda
To run InsarViz you will need the following command line (inside the pdm_venv): .. code-block :: bash
pdm run ts_viz
Update InsarViz after modifying the code
To ensure that your code changes are taken into account, run again the pdm install command line.
How to cite
If you use InsarViz for your project, please consider citing this paper
How to cite
If you use InsarViz for your project, please consider citing this paper
Contact
If you need help or have ideas for further developments, you can contact: insarviz-sos@univ-grenoble-alpes.fr
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file insarviz-2.1.0.tar.gz
.
File metadata
- Download URL: insarviz-2.1.0.tar.gz
- Upload date:
- Size: 72.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.18.2 CPython/3.9.19 Linux/6.5.0-1027-oem
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e03080c0825ec13dec1508c6f19b0d1896e5bafed101f82f1d4c7f1519ecb18 |
|
MD5 | 752233edd64ca02fa1f4b1b586ff6bcb |
|
BLAKE2b-256 | 3bba49e5bc272275c6064964ff5c4b9fe9c295864a02161682d8b7b56ea4412d |
File details
Details for the file insarviz-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: insarviz-2.1.0-py3-none-any.whl
- Upload date:
- Size: 72.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.18.2 CPython/3.9.19 Linux/6.5.0-1027-oem
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 553db60441193ac73b172b4fc88b2080e659e0bbb9ccd50a5f9eb05c170862cd |
|
MD5 | b9eb8e6b043c8935a70bdfe9b4ded4de |
|
BLAKE2b-256 | cc00fdb292329183cb714df1ca0a9d079b98908af82b5cc6d02664d26382805d |