Skip to main content

insar-rs (Python)

Bindings Python del motor SBAS de insar-rs (Rust). Inversión de series temporales InSAR rápida, consumible desde numpy.

Instalar (desarrollo)

python3 -m venv .venv && source .venv/bin/activate
pip install maturin numpy
cd crates/python
maturin develop --release

Uso

import insar_rs, numpy as np

# End-to-end desde interferogramas ISCE (.unw desenrollados). Referencia
# automáticamente al píxel de máxima coherencia media.
vel, vel_std, series, coherence, epochs = insar_rs.sbas_from_isce(
    "merged/interferograms", baselines_dir="baselines")
# vel: (filas, cols) m/año ; vel_std: (filas, cols) m/año (error estándar)
# series: (épocas, filas, cols) m
# coherence: (filas, cols) coherencia temporal [0,1] (máscara de calidad)
# epochs: ['YYYY-MM-DD', ...]

# O sobre arrays propios de fase desenrollada (n_pares, filas, cols) en radianes:
ts  = insar_rs.invert_sbas(phase, refs, secs, epoch_days, wavelength_m=0.0555)
vel = insar_rs.estimate_velocity(ts, epoch_days)

# Persistent Scatterers:
da  = insar_rs.amplitude_dispersion(amp_stack)  # (n_épocas, filas, cols) -> (filas, cols)

# Descomposición LOS asc+desc -> (Up, East); geometría escalar o por píxel:
up, east = insar_rs.decompose_asc_desc(los_asc, 39.0, 349.0, los_desc, 39.0, 191.0)
up, east = insar_rs.decompose_per_pixel([los_asc, los_desc], [inc_asc, inc_desc], [head_asc, head_desc])

# Descriptores por píxel para ML (dict de arrays, esquema determinista):
features = insar_rs.extract_features(series, epoch_days)  # {"velocity": ..., "acceleration": ..., ...}

# Deramp (plano/cuadrática) y corrección de saltos 2π por cierre de fase:
flat = insar_rs.remove_ramp(vel, "linear")
corrected_phase, n_corrected, n_uncorrected = insar_rs.correct_unwrap_errors(phase, refs, secs)

Convenciones: NoData = NaN; desplazamiento LOS d = −λ/(4π)·φ; serie relativa a la primera época. Validado contra MintPy (ver ../../docs/validation.md).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

insar_rs-0.2.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

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

insar_rs-0.2.0-cp39-abi3-manylinux_2_35_x86_64.whl (716.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.35+ x86-64

File details

Details for the file insar_rs-0.2.0.tar.gz.

File metadata

  • Download URL: insar_rs-0.2.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for insar_rs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 abba324141302d1a5f4b330b05630fac4d99df47e785dae2e7953ff6cb06d4ba
MD5 f03739c9dfef734b21a9187c7aef973e
BLAKE2b-256 c92ba5e0969fa6d5b5104b19d4be0f73f2140c5215db8693183752defb38b1f9

See more details on using hashes here.

File details

Details for the file insar_rs-0.2.0-cp39-abi3-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for insar_rs-0.2.0-cp39-abi3-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 1b77044896a62f47f98a5652d438c687934ee8913a84d4f226828f0d04f7d77e
MD5 c20624de46028827c6e62908743247b8
BLAKE2b-256 a5a510e6dc564d03abd89f47e091b05b3c322c6387f4ebd34a9c6293886d3df6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page