Metadata-Version: 2.4
Name: insarscript
Version: 1.0.0
Summary: Hassle-free InSAR processing scripts for multiple satellites
Author-email: jldz9 <Jiaweiliwork@outlook.com>
Project-URL: homepage, https://jldz9.github.io/InSARScript
Project-URL: repository, https://github.com/jldz9/InSARScript
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: asf_search==10.0.4
Requires-Dist: colorama==0.4.6
Requires-Dist: contextily==1.6.2
Requires-Dist: dask==2025.7.0
Requires-Dist: dem_stitcher==2.5.12
Requires-Dist: GDAL==3.11.0
Requires-Dist: hyp3_sdk==7.7.3
Requires-Dist: matplotlib==3.10.6
Requires-Dist: mintpy==1.6.2
Requires-Dist: numpy==2.3.3
Requires-Dist: packaging==25.0
Requires-Dist: pandas==2.3.3
Requires-Dist: psutil==7.0.0
Requires-Dist: pyaps3==0.3.7
Requires-Dist: pyproj==3.7.2
Requires-Dist: python_box==7.3.2
Requires-Dist: python_dateutil==2.9.0.post0
Requires-Dist: rasterio==1.4.3
Requires-Dist: Requests==2.32.5
Requires-Dist: sentineleof==0.11.1
Requires-Dist: Shapely==2.1.2
Requires-Dist: tomli_w==1.2.0
Requires-Dist: tqdm==4.67.1
Dynamic: license-file

# InSARScript

InSAR Script is an open-source package designed to support the full InSAR processing pipeline.
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
- Documentation

## Installation 

InSARScript can be installed using Conda
```bash
conda install jldz9::insarscript -c conda-forge

```
Pip: 

```bash
Pip install insarscript
```

Source: 

```bash
git clone https://github.com/jldz9/InSARScript.git
cd InSARScript
conda env create -f environment.yml -n insarscript_dev
```

## Requirements
- Python >=3.11
- proj >=9.4
- hyp3_sdk
- mintpy
- gdal >=3.8
- sqlite >=3.44
- mintpy
- asf_search 
- colorama 
- contextily 
- dem_stitcher 
- hyp3_sdk 
- python-box 
- rasterio >=1.4
- sentineleof 
- tomli-w

## Usage 

#### Search:

```python
from insarscript import S1_SLC

s1 = S1_SLC(
    platform=['Sentinel-1A', 'Sentinel-1B', 'Sentinel-1C'],
    AscendingflightDirection=False,
    bbox = [124.67, 46.38, 125.35, 46.85],
    start='2020-01-01',
    end='2020-12-31',
    output_dir = '~/tmp',
)
results = s1.search()

```

#### Interferogram Process

```python
from insarscript import S1_SLC
from insarscript import select_pairs
sbas_pairs = select_pairs(search_results= filter_results[(3,435)])

from insarscript import Hyp3_InSAR_Processor
hyp3_sbas = Hyp3_InSAR_Processor(
    pairs = sbas_pairs,
    out_dir = '~/tmp'
)
batch = hyp3_sbas.submit()
hyp3_sbas.save()
hyp3_sbas.refresh()
hyp3_sbas.download()

```

#### SBAS

```python
from insarscript import Hyp3_SBAS
sbas_run = Hyp3_SBAS(
    hyp3_dir = '~/tmp'
)
sbas_run.prep_data()
sbas_run.run()
```

## Documentation 

[InSARScript documentation](https://jldz9.github.io/InSARScript/)

