https://github.com/alexlipp/directional-wavelets

Supplementary code relating to the paper "Flow directions of drainage networks set by the mantle" (sub judice)

https://github.com/alexlipp/directional-wavelets

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: wiley.com, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Supplementary code relating to the paper "Flow directions of drainage networks set by the mantle" (sub judice)

Basic Info
  • Host: GitHub
  • Owner: AlexLipp
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 49.8 KB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 6 years ago · Last pushed about 3 years ago

https://github.com/AlexLipp/directional-wavelets/blob/master/

This repository is archived at the point of submission on Zenodo: [![DOI](https://zenodo.org/badge/228919951.svg)](https://zenodo.org/badge/latestdoi/228919951)


# Wavelet analysis of directional data

Example of how to perform wavelet analysis on a sequence of directional data, using the example of the flow direction of the Colorado river, USA. Supplementary code relating to the paper *"[Scale-Dependent Flow Directions of Rivers and the Importance of Subplate Support](https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2020GL091107)"* 

## Requisites

DEM preprocessing was written for [Generic Mapping Tools](http://gmt.soest.hawaii.edu/) v6 but is compatible with some older versions. 

The python scripts require `python` version **3.6.9** and a modified version of the `mlpy` package. Generic scientific computing pacakges are also used (e.g. `numpy`, `pandas`, `matplotlib` etc...)

## Contents

This repository contains 5 files. 

### Data preprocessing

`preprocessing.sh` indicates how to resample a river stored as a sequence of longitudes and latitudes into a sequence of azimuth as a function of downstream distance. This `bash` script calls a `python` script, 

`find_near.py` is an auxilliary script called from within `preprocessing.sh` which finds the nearest adjacent point for a given river.

### Wavelet Analysis

`azimuths_wavelets_colorado.py` performs wavelet transformation on the Colorado river flow-direction as a function of distance downstream by transforming azimuth into the complex plane. The script transforms the bearing into a function of distance and wavenumber, and subsequently displays the results. The script then performs the inverse wavelet transformation to reconstruct the original signal, as well as reconstructing filtered versions of the signal by removing variation contained on small wavelengths. Finally, the script shows that performing wavelet analysis on azimuths by splitting it into 'eastings' and 'northings' produces identical results to the method in the complex plane.   

`colorado.dat` is a text file containing the longitude, latitude, distance downstream and flow direction of the Colorado river. 

`continuous.py` is a **modified** source code of the `mlpy` package. These modifications can be implemented by simply replacing the original `continuous.py` (found where your python implementation is stored) with the one in this repository. Alternatively, the modifications are minor and are detailed in `continuous.py`.

Owner

  • Name: Alex Lipp
  • Login: AlexLipp
  • Kind: user
  • Location: Oxford, UK
  • Company: Merton College, Oxford

Earth & Environmental Scientist at the University of Oxford

GitHub Events

Total
Last Year