Skip to content

This repo contents the data and models used in the study, "Characterizing and Projecting Internal Phosphorus Loading through Bayesian Mass-balance Modeling"

Notifications You must be signed in to change notification settings

SmitomB/Internal_Phosphorus_Loading_Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Characterizing and Projecting Internal Phosphorus Loading through Bayesian Mass-balance Modeling

Description of the Repository

This repository contains the data and code used in the paper "Characterizing and Projecting Internal Phosphorus Loading through Bayesian Mass-balance Modeling". The details of the subrepositories are as follows:
Sub-repositories Description
DataFiles Data files such as .csv, .xlsx, .txt are stored in this folder.
Pmodels All model codes are stored in this folder.
RWorkSpaces R workspaces required to run the model.
OutputFiles Contains the output data from the P models.

Prerequisites to run the model

GitHub Account

A GitHub account is required to run the model. The details of creating a new GitHub account can be easily found over the internet.

Installations and setup

Install Git, R, and RStudio from respective websites.

To link Git to RStudio, open RStudio and go to Tools > Global Options… click on Git/SVN. Check Enable version control interface for RStudio projects. Set the path to the Git executable that was installed. Click OK and restart Rstudio. If done correctly, the Git icon will appear on the RStudio toolbar. Next, configure Git and set your user name and email (the email address you used to register on GitHub). You can directly open the Git prompt from within RStudio. User name and email needs to be set only once. Go to Tools > Shell to open the Git Shell to tell Git your username and GitHub email.

How to run the model

Step 1 : In the top-right corner of this page, click Fork. Under Owner, select the dropdown menu and click an owner for the forked repository. By default, forks are named the same as their upstream repositories. Optionally, to further distinguish your fork, in the Repository name field, type a name. Click Create fork. A forked repository will be created in your GitHub account.

Step 2: Click on Code icon in the forked repository to copy the HTTPS url. The HTTPS url will be something like https://github.com/SmitomB/Internal_Phosphorus_Loading_Model.git.

Step 3 : Open RStudio and click New Project... from File. Select Version Control and Git. In the Repository URL, enter the HTTPS URL of the forked repository from your GitHUb account. Next, enter a Project directory name and select the directory in which the you want to store the R project. Select Create Project

Step 4 : Run the codes stored in JLPMv016p001.Rmd to JLPMv016p010.Rmd in Pmodels repository.

About

This repo contents the data and models used in the study, "Characterizing and Projecting Internal Phosphorus Loading through Bayesian Mass-balance Modeling"

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages