Giter Club home page Giter Club logo

preferential_nutrient_rentention_in_global_lakes's Introduction

Preferential_Nutrient_Rentention_in_Global_Lakes

DOI

This repo contains the data and code used in the paper "Preferential Phosphorus Retention in Lakes Exacerbates the Imbalance of Global Nutrient Cycles"

1. Data

NLA2012_data.csv contains the data used in NLA2012 model.

Global_data.csv is a dataset of 5,622 lakes as an intersection of Chlorophyll and Water Chemistry database and HydroLAKES database.

2. NLA2012 Nutrient Budget Model

NLAmodel.stan is the stan code for NLA2012 model.

NLAmodel.ipynb runs the stan code in NLAmodel.stan using data in NLA2012_data.csv and generate model output in NLAmodel_output.csv.

3. Generalized Linear Model

global_data_clean.R is used for the data cleaning. Cleaned data is in folder global results/ named as global_data_clean.csv.

glm_N.R and glm_P.R are code for GLM models to relate EN and DE of N and P with multiple explanatory variables including water residential time, surface water temperature, water depth, area and trophic index. Statistics are generated in the folder fitting statistics/. Then cleaned global data is used to predict the EN and DE of N and P of the global lakes and placed in the folder global results/, namely global_N.csv and global_P.csv respectively.

4. Global Up-scaling

upscaling.ipynb contains the code for Monte Carlo approach to predict the internal nutrient cycling fluxes of global lakes from the distribution of the nutrient budget model results.

preferential_nutrient_rentention_in_global_lakes's People

Contributors

yimsun97 avatar zhenwu0728 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.