Skip to main content

Python package for analyzing A-DInSAR time series.

Project description

Wasar: Analysis of A-DInSAR time series.

image DOI

This package allows to analyze the ground deformation of a region and to compare it with other climatic variables, such as groundwater levels or rainfall. In addition, the inclusion of wavelet tools allows to analyze the main periodicities of the model variables and estimate cause-effect processes.

Introduction

Many regions worldwide are affected by ground subsidence phenomena. Abusive water withdrawal from aquifers is one the main factors than can lead to this kind of processes. Although ground motion monitoring can be performed with in-situ instruments, one of the most widely used techniques in the last decades is the Advanced Differential Interferometry Synthetic Aperture Radar (A-DInSAR). The A-DInSAR technique consists on the superposition of numerous SAR images of the same region of the Earth, thus obtaining an image of the ground motion occurring between the SAR images acquisitions. Analyzing multiple time series of ground movement in a given region, and comparing them with groundwater level variatons (or other variables), are the manin purposes of the present program.

Install

Released source packages are available on PyPi. You can simply install it as:

pip install wasar

Since geopandas dependencies could cause conflicts with other spatial packages, it's highly recommended to create first a new environment, as well as taking a look at the geopandas installation guidelines.

An optional package must be installed for the use of wavelet analysis. It's rpy2 package, and it can be simply installed via pip:

pip install rpy2


In case you find problems installing geopandas, here we leave the procedure we have used to install geopandas from the Anaconda Powershell Prompt:

  1. Create a new environment (in this example with the name enviname):

conda create --name enviname

  1. Activate the new environment:

conda activate enviname

  1. Install geopandas:

conda install -c conda-forge python=3.9 fiona shapely rasterio pyproj pandas jupyterlab jupyter geopandas

  1. Open a new jupyter notebook from your working directory:

jupyter notebook --notebook-dir=c:\working_directory

Dependencies

  • geopandas
  • pandas
  • matplotlib
  • folium

Contact

We are Miguel González Jiménez and Carolina Guardiola Albert. You can contact us just via GitHub or through our e-mails: miguigonn@gmail.com and c.guardiola@igme.es.

Get started

In the example folder you can find several tutorials that will help you to get started with the program. Also, the functions, classes and modules are fully explained in Spanish, so if you have doubts about their behavior, just use the built-in help, the ? mark or the tab button in Jupyter Notebook.

Example: help(wasar.Dataset.find_element) or wasar.Dataset.find_element? or wasar.Dataset.find_element + . + press tab

Licence

This project is licensed under the terms of the GNU General Public License v3.0

How to cite wasar

If you use the program, please cite it as follows:

Example

>>> import wasar
>>> Model = wasar.example.get_model()

>>> mymap = Model.mapa(LayerControl=False)
>>> Model.get('Asc').mapa(m=mymap)

map

A very useful tool of wasar are wavelet tools, which allow to perform frequency analysis of the time series.

The following example shows the common periodicities between a rainfall station and a piezometer, being the annual frequency the main common one.

>>> from wasar import Wavelet
>>> Doñana = wasar.example.get_model()

>>> piezometer = Doñana.get('Piezo_bbdd').take('104080065')
>>> piezometer = piezometer.pivot(index='Fechas',columns='Nombre', values='Valores')

>>> rainfall = Doñana.get('P').take('Almonte')

>>> Wavelet('M', piezometer, rainfall, dt=2, dj=1/20, lowerPeriod=2, upperPeriod=30)

wavelet

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

wasar-0.0.4.tar.gz (901.0 kB view details)

Uploaded Source

Built Distribution

wasar-0.0.4-py3-none-any.whl (977.2 kB view details)

Uploaded Python 3

File details

Details for the file wasar-0.0.4.tar.gz.

File metadata

  • Download URL: wasar-0.0.4.tar.gz
  • Upload date:
  • Size: 901.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/3.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.11

File hashes

Hashes for wasar-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f30c0a45a0317d1fa5a4e4a8a51e9687cabab61b08aa5a742b14da773953bb37
MD5 6e7d0de839a11ef3ac2ca5587347f65e
BLAKE2b-256 7d44d34865f72fe46565c1136bde07b32397221b2efa6f829deb192dea69adf7

See more details on using hashes here.

File details

Details for the file wasar-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: wasar-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 977.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/3.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.11

File hashes

Hashes for wasar-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a097a9c0edf4fcfa850d5014262fffd593c187aa9592e77043b6c4728f996d7c
MD5 90fc094c93735047c13b0bfe24239385
BLAKE2b-256 be93b8456fd6883ea524927a3382b8ade3e342f1ddc3797d379a6908ffda44bb

See more details on using hashes here.

Supported by

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