https://github.com/alexlipp/unmixer

Unmixing the geochemistry of river sediments

https://github.com/alexlipp/unmixer

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
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.0%) to scientific vocabulary

Keywords

digital-elevation-model geochemistry rivers
Last synced: 6 months ago · JSON representation

Repository

Unmixing the geochemistry of river sediments

Basic Info
  • Host: GitHub
  • Owner: AlexLipp
  • License: gpl-3.0
  • Language: HTML
  • Default Branch: main
  • Homepage:
  • Size: 15.8 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
digital-elevation-model geochemistry rivers
Created almost 5 years ago · Last pushed over 4 years ago
Metadata Files
Readme License

README.md

Unmixing fluvial sedimentary geochemistry

This repository contains supporting code and data for the publication "Unmixing river sediments for the elemental geochemistry of their source regions" (Under review; preprint).

This repository is archived at point of submission at Zenodo - DOI

This repository contains 11 files.

Minimum working example script

inversion_mwe.ipynb is a 'Jupyter Notebook' which contains an annotated minimum working example for the inversion procedure described in the manuscript written in python. A compiled version of this .ipynb is given as inversion_mwe.html that displays the code and the outputs, and can be opened in any browser.

Additional Scripts

Alongside the above notebook that describes the procedure utilised in the manuscript I have also provided two modified versions, not discussed in the manuscript but potentially of general interest.

First, fast_inversion_mwe.ipynb, which is broadly the same as the published version but significantly faster (> 10x). This speed-up is achieved by using a faster optimisation algorithm (Powell's method) and starting the inversion closer to the optimal solution. I strongly suggest using this faster version in further work.

Second, a multivariate extension of the univariate example is provided in multivariate_inversion_mwe.ipynb. Instead of solving each element individually, multiple specified elements are all inverted simultaneously, all whilst obeying the constraints of compositional data, i.e. strictly positive variables that sum to a closure value (e.g. 100 %, 1000000 mg/kg etc). Whilst mathematically neat and self-contained, it is actually (at present...) computationally less efficient than running each element in parallel as it is quadratic w.r.t to the number of elements inverted. Making this multivariate implementation more efficient is left as an exercise to the reader...

Data

topo.dat is a 2D array of giving the elevations in metres for our study area. This was generated by downsampling the SRTM1s dataset to a grid of 200x200 m resolution.

geochem.dat contains the geochemical concentration for a range of elements (in mg/kg) in sediments gathered from our 67 sample sites. See also Lipp et al. 2020.

fitted_samp_locs.dat contains the location (on the model grid) for the fitted sample sites.

samples.dat gives further metadata for the samples as well as their full (projected) localities.

Supporting Information

The supporting information containing results for all elements is provided in supp_info.pdf.

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
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 13
  • Total Committers: 1
  • Avg Commits per committer: 13.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Alex Lipp a****x@l****k 13
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 2 years ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels