Skip to main content

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

insarviz-2.2.1.tar.gz (77.7 MB view details)

Uploaded Source

Built Distribution

insarviz-2.2.1-py3-none-any.whl (77.7 MB view details)

Uploaded Python 3

File details

Details for the file insarviz-2.2.1.tar.gz.

File metadata

  • Download URL: insarviz-2.2.1.tar.gz
  • Upload date:
  • Size: 77.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.20.0.post2.dev9+g004abcc CPython/3.9.19 Linux/6.8.0-48-generic

File hashes

Hashes for insarviz-2.2.1.tar.gz
Algorithm Hash digest
SHA256 8088991ed1d7bd188b2ab6bd8e2384b9611f4ade82769a1774464d1f77dca473
MD5 4e50460aaadbd564c9d5c682f8bc289f
BLAKE2b-256 7ac665a75a21861a972b613ad9ed2ae2e68958f154d6e006d9e8fd54ef60a91a

See more details on using hashes here.

File details

Details for the file insarviz-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: insarviz-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 77.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.20.0.post2.dev9+g004abcc CPython/3.9.19 Linux/6.8.0-48-generic

File hashes

Hashes for insarviz-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1599f35f445f4aae61a728254ebbef2e12040773e25fcf6e83888f1c51b26f66
MD5 5b37e834d4c4d15d57d6fe5cd77cf48d
BLAKE2b-256 546dfdcf22220400f350a950340f2fb75ff8ffa610c2d2007b0ea8d88b90e549

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page