Workflows for generating surface displacement maps using InSAR
Project description
dolphin
High resolution wrapped phase estimation for Interferometric Synthetic Aperture Radar (InSAR) using combined persistent scatterer (PS) and distributed scatterer (DS) processing.
Install
dolphin may be installed via conda-forge:
# if mamba is not already installed, see here: https://mamba.readthedocs.io/en/latest/
mamba install -c conda-forge dolphin
It is also available via PyPI and may be pip-installed on some platforms, such as Google's Colab. However, certain dependencies (e.g. GDAL) are more easily set up through conda.
dolphin has the ability to unwrap interferograms using several options, which can be toggled using the unwrap_method configuration option:
snaphu-py, a lightweight Python bindings to SNAPHU. Available on both pip and conda.isce3's python bindings to SNAPHU, PHASS, or ICUspurt, a 3D unwrapper, implementing the Extended Minimum Cost Flow (ECMF) algorithmtophu, a multi-scale unwrapper designed to unwrap large interferograms in parallel tiles at multiple resolution.
These may be installed via conda or (in the case of snaphu-py) pip.
To install locally:
- Download source code:
git clone https://github.com/isce-framework/dolphin.git && cd dolphin
- Install dependencies:
mamba env create --file conda-env.yml
or if you have an existing environment:
mamba env update --name my-existing-env --file conda-env.yml
- Install
dolphinvia pip:
conda activate dolphin-env
python -m pip install .
Dolphin can also take advantage of CUDA-compatible GPUs for faster processing. See the docs for installation instructions and configuration.
Usage
The main entry point for configuring and running workflows the dolphin command line tool:
dolphin config: create a workflow configuration file.dolphin run: run the workflow using this file.
Example usage:
dolphin config --slc-files /path/to/slcs/*tif
# OR: to make a coarser output 4x as quickly:
# dolphin config --slc-files /path/to/slcs/*tif --strides 2 2
dolphin run dolphin_config.yaml
The config command creates a YAML file (by default dolphin_config.yaml in the current directory). If you'd like to see an empty YAML with all defaults filled in, you can run dolphin config --print-empty, which creates a sample file like the one here
The only required inputs for the workflow are the paths to the coregistered SLC files (in either geographic or radar coordinates). If the SLC files are spread over multiple files, you can either
-
use the
--slc-filesoption with a bash glob pattern, (e.g.dolphin config --slc-files merged/SLC/*/*.slcwould match the ISCE2 stack processor output ) -
Store all input SLC files in a text file delimited by newlines (e.g.
my_slc_list.txt), and give the name of this text file prefixed by the@character (e.g.dolphin config --slc-files @my_slc_list.txt)
The full set of options is written to the configuration file; you can edit this file, or you can see which commonly tuned options by are changeable running dolphin config --help.
Building and running via Docker
dolphin can also be run using Docker. You can use the one built on Github, or build it locally using the script
./docker/build-docker-image.sh
Citation
If you use dolphin in your research, please cite:
Staniewicz et al., (2024). Dolphin: A Python package for large-scale InSAR PS/DS processing. Journal of Open Source Software, 9(103), 6997, https://doi.org/10.21105/joss.06997
Contributing
We welcome many forms of contributing, including testing, bug reports, and documentation fixes. If you think you've found a problem, please let us know! You can raise an issue on the repository, where there are templates for Bug Reports and Feature Requests. If you have a general question of idea, feel free to raise it in the Discussions page.
For more detailed guidance on setting up a development environment, including how make and test changes to the code, see Contributing to Dolphin.
For more general Q&A, please use the Discussions page.
License
This software is licensed under your choice of BSD-3-Clause or Apache-2.0 licenses. See the accompanying LICENSE file for further details.
SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dolphin-0.42.3.tar.gz.
File metadata
- Download URL: dolphin-0.42.3.tar.gz
- Upload date:
- Size: 9.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b9fafdd155482a0a815c3892883d0b9885fd7913d3c46ed15310a756916bc71
|
|
| MD5 |
0df622785be2ef7783c4967852d07dfa
|
|
| BLAKE2b-256 |
85374d42caf1a019ae3dcff6615eba16bca352c7a18563302fede2d7c37e13c7
|
Provenance
The following attestation bundles were made for dolphin-0.42.3.tar.gz:
Publisher:
cd.yml on isce-framework/dolphin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dolphin-0.42.3.tar.gz -
Subject digest:
0b9fafdd155482a0a815c3892883d0b9885fd7913d3c46ed15310a756916bc71 - Sigstore transparency entry: 872743086
- Sigstore integration time:
-
Permalink:
isce-framework/dolphin@4c4bb41834646ba8ba2aad0edd554ca929595b2b -
Branch / Tag:
refs/tags/v0.42.3 - Owner: https://github.com/isce-framework
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@4c4bb41834646ba8ba2aad0edd554ca929595b2b -
Trigger Event:
release
-
Statement type:
File details
Details for the file dolphin-0.42.3-py3-none-any.whl.
File metadata
- Download URL: dolphin-0.42.3-py3-none-any.whl
- Upload date:
- Size: 222.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dd60291ed2b020f4edc925b025b8da1f0505ea95d086204fa59961ed28973b5
|
|
| MD5 |
b363dc5535fd1592aff03672b6e25859
|
|
| BLAKE2b-256 |
e3c3b564f15791f6bac278e181ca917c2d6fcede68e9a6f25a5aa1c64ab8cd88
|
Provenance
The following attestation bundles were made for dolphin-0.42.3-py3-none-any.whl:
Publisher:
cd.yml on isce-framework/dolphin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dolphin-0.42.3-py3-none-any.whl -
Subject digest:
3dd60291ed2b020f4edc925b025b8da1f0505ea95d086204fa59961ed28973b5 - Sigstore transparency entry: 872743179
- Sigstore integration time:
-
Permalink:
isce-framework/dolphin@4c4bb41834646ba8ba2aad0edd554ca929595b2b -
Branch / Tag:
refs/tags/v0.42.3 - Owner: https://github.com/isce-framework
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@4c4bb41834646ba8ba2aad0edd554ca929595b2b -
Trigger Event:
release
-
Statement type: