Skip to content
InSAR time series analysis in Python
Branch: master
Clone or download
Latest commit 29311e4 Apr 25, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
_includes Github Page: update links Mar 26, 2019
_layouts remove visit location png, will add dynamic map later Jul 5, 2018
docs Update Apr 26, 2019
pysar pysarApp: expose more parameters for empirical tropospheric delay cor… Apr 26, 2019
sh tropo velocity: adjust file name following Falk's suggestion (#25) Apr 5, 2019
test test: add Wells dataset Mar 28, 2019
.gitignore move examples to docs/examples Apr 24, 2019
LICENSE simpler version.description Feb 19, 2019 docs: rename Notebooks to tutorials Apr 24, 2019
_config.yml Github Page: update links Mar 26, 2019
requirements.txt update docs for pyaps3 Apr 19, 2019


Language Latest version License Forum

PySAR is an open-source package in Python for InSAR (Interferometric Synthetic Aperture Radar) time series analysis. It reads the stack of interferograms (coregistered and unwrapped) in ISCE, Gamma or ROI_PAC format, and produces three dimensional (2D in space and 1D in time) ground displacement. It includes a routine time series analysis ( and some independent toolbox.

1. Installation

2. Running PySAR

PySAR reads a stack of interferograms (unwrapped interferograms, coherence, wrapped interferograms and connecting components from SNAPHU if available) and the geometry files (DEM, lookup table, etc.). You need to give the path to where the files are and PySAR takes care of the rest!                         #run with default template 'pysarApp_template.txt' <custom_template>       #run with default and custom templates -h / --help             #help -H                      #print    default template options -g                      #generate default template if it does not exist -g <custom_template>    #generate/update default template based on custom template

# Run with --start/stop/dostep options GalapagosSenDT128.template --dostep velocity  #run at step 'velocity' only GalapagosSenDT128.template --end load_data    #end after step 'load_data'

Example on Fernandina volcano, Galápagos with Sentinel-1 data

tar -xvJf FernandinaSenDT128.tar.xz
cd FernandinaSenDT128/PYSAR ${PYSAR_HOME}/examples/input_files/FernandinaSenDT128.txt

Inside, it reads the unwrapped interferograms, references all of them to the same coherent pixel (reference point), calculates the phase closure and estimates the unwrapping errors (if it has been asked for), inverts the network of interferograms into time-series, calculates a parameter called "temporal coherence" which can be used to evaluate the quality of inversion, corrects local oscillator drift (for Envisat only), corrects stratified tropospheric delay (using pyaps or phase-elevation-ratio approach), removes phase ramps (if it has been asked for), corrects DEM error,... and finally estimates the velocity.

Check ./PIC folder for auto-generated figures. More details about this test data are in here.

2.1 Some useful scripts for information and visualization:                    #check HDF5 file structure and metadata                    #2D map view                  #1D point time-series (interactive)                #1D profile (interactive)   #plot coherence matrix for one pixel (interactive)            #plot network configuration of the dataset                #generate Google Earth KMZ file in raster image     #generate Goodle Earth KMZ file in points for time-series (interactive)

2.2 Build your own processing recipe: example

PySAR is a toolbox with a lot of individual utility scripts, highly modulized in python. Check its documentation or simply run it with -h to see its usage, you could build your own customized processing recipe! Here is an example to compare the velocities estimated from displacement time-series with different tropospheric delay corrections: link

3. Documentation

4. User Forum

Join our google group!forum/py-sar to ask questions, get notice of latest features pushed to you!


  • Zhang Yunjun
  • Heresh Fattahi
  • Falk Amelung
  • Scott Baker
  • Joshua Zahner
  • Alfredo Terreco
  • David Grossman
  • Yunmeng Cao
  • other community members
You can’t perform that action at this time.