Skip to main content

A modular Python framework for automated InSAR and time-series processing.

Project description

InSARHub

InSARHub is a modular Python framework for automated InSAR and time-series processing.

The primary goal of this package is to provide a streamlined and user-friendly InSAR processing experience across multiple satellite products.

Table of Contents

  • Installation
  • Requirements
  • Usage
  • CLI
  • Documentation

Installation

InSARHub can be installed using Conda:

conda install insarhub -c conda-forge

Pip:

pip install insarhub
conda install gdal

From source:

git clone https://github.com/jldz9/InSARHub.git
cd InSARHub
conda env create -f environment.yml -n insarhub_dev

Requirements

  • Python >=3.11
  • numpy <2.0"
  • proj >=9.4
  • gdal >=3.8
  • sqlite >=3.44
  • mintpy
  • asf_search
  • colorama
  • contextily
  • dem_stitcher
  • hyp3_sdk
  • rasterio >=1.4
  • sentineleof

Usage

Downloader:

from insarhub import Downloader
  • View available downloaders

    Downloader.available()
    
  • Create downloader

    s1 = Downloader.create('S1_SLC', 
                            intersectsWith=[-113.05, 37.74, -112.68, 38.00],
                            start='2020-01-01', 
                            end='2020-12-31',  
                            relativeOrbit=100, 
                            frame=466, 
                            workdir='path/to/dir')
    
  • Search

    results = dl.search()
    
  • Filter

    filter_result = dl.filter(start='2020-02-01')
    
  • Download

    dl.download()
    

Processor:

from insarhub import Processor
  • View available processors

    Processor.available()
    
  • Create Processor

    processor = Processor.create('Hyp3_InSAR', workdir='/your/work/path', pairs=pairs)
    
  • Submit Jobs

    jobs = processor.submit()
    
  • Refresh Jobs

    jobs = processor.refresh()
    
  • Download Sucessed Jobs

    processor.download()
    

Analyzer

from insarhub import Analyzer
  • View available analyzers

    Analyzer.available()
    
  • Create Analyzer

    analyzer = Analyzer.create('Hyp3_SBAS', workdir="/your/work/dir")
    
  • Prepare data

    analyzer.prep_data()
    
  • Run time-series analysis

    analyzer.run()
    

CLI

InSARHub includes a command-line interface for running the full pipeline without writing Python code, suitable for HPC batch jobs and scripted workflows.

insarhub <command> [options]

End-to-end example

# Search scenes and select interferogram pairs
insarhub downloader -N S1_SLC \
    --AOI -113.05 37.74 -112.68 38.00 \
    --start 2020-01-01 --end 2020-12-31 \
    --stacks 100:466 \
    -w /data/bryce \
    --select-pairs

# Submit pairs to HyP3 (auto-reads pairs_p*_f*.json from workdir subfolders)
insarhub processor submit -w /data/bryce

# Wait for jobs and download results automatically
insarhub processor watch -w /data/bryce

# Run MintPy time-series analysis
insarhub analyzer -N Hyp3_SBAS -w /data/bryce run

Commands

Command Description
insarhub downloader Search scenes, select pairs, and download data
insarhub processor submit Submit interferogram pairs to HyP3
insarhub processor watch Poll HyP3 and download results when complete
insarhub analyzer run Prepare data and run MintPy SBAS analysis
insarhub utils clip Clip HyP3 zip contents to an AOI
insarhub utils select-pairs Select pairs from a saved search GeoJSON
insarhub utils plot-network Plot interferogram network
insarhub utils slurm Generate a SLURM batch script
insarhub utils era5-download Download ERA5 weather data for tropospheric correction

Use insarhub <command> --help for full option details, or see the CLI Reference.

Documentation

InSARHub documentation

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

insarhub-0.1.1.tar.gz (101.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

insarhub-0.1.1-py3-none-any.whl (110.9 kB view details)

Uploaded Python 3

File details

Details for the file insarhub-0.1.1.tar.gz.

File metadata

  • Download URL: insarhub-0.1.1.tar.gz
  • Upload date:
  • Size: 101.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for insarhub-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1e20fdcd103d47b86c94c790ccbb5c35e54abb5144690608b094283d812f47f9
MD5 99fbf72d93bf1e00297fc43db864117b
BLAKE2b-256 946a76add01c87eae5358c597771ab2bb7905c7e0e30af4d6ae172e6f70b7580

See more details on using hashes here.

File details

Details for the file insarhub-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: insarhub-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 110.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for insarhub-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01fb17ff72903945f6f6869963096b342d0d9021a37fcdb2110914ee835f46cd
MD5 9d5328476e9372f86636254cf298feaf
BLAKE2b-256 60b6eaf1c768060a53d9f9e7c7d2aebf919b3458f4c441873b28c94e9d4eea74

See more details on using hashes here.

Supported by

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