Skip to content

Commit

Permalink
Merge pull request #6 from TxWRI/load-report
Browse files Browse the repository at this point in the history
Load report
  • Loading branch information
mps9506 authored Nov 17, 2022
2 parents 3a4f30e + 433b8b0 commit cf4792b
Show file tree
Hide file tree
Showing 7 changed files with 462 additions and 53 deletions.
395 changes: 395 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions R/metadata.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ write_spice(path = "data/Output/metadata")


build_site("data/Output/metadata/dataspice.json")
serve_site()
10 changes: 8 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
title: "Texas Coastal Nutrient Input Repository (Phase 1 - Lavaca Bay)"
author: Michael Schramm - Texas Water Resources Institute, Research Specialist
output: github_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

This is the analysis code and data for the Texas Coastal Nutrient Input Repository project. This project develops estimates of actual and flow-normalized daily nitrate (NO^3^-N) and total phosphorus (TP) watershed loads. Reports and publications are forthcoming.
[![License: CC BY 4.0](https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)

This repository contains code and data for the Texas Coastal Nutrient Input Repository project. This project develops estimates of actual and flow-normalized daily nitrate (NO^3^-N) and total phosphorus (TP) watershed loads. Reports and publications are forthcoming.

Data analysis and models were developed in R using the [renv](https://rstudio.github.io/renv/) and [targets](https://docs.ropensci.org/targets/) R packages to facilitate reproducibility. To reproduce this analysis clone the repository to your local machine, ensure both renv and targets are installed and open the project. The analysis can be reproduced using:

Expand All @@ -17,6 +18,11 @@ renv::restore()
targets::tar_make()
```

## Data Download

Metadata and download links for nutrient loading data (csv files) are located here: https://txwri.github.io/lavaca-nutrients/


## Funding

This project was funded by a Texas Coastal Management Program grant approved by the Texas Land Commissioner, providing financial assistance under the Coastal Zone Management Act of 1972, as amended, awarded by the National Oceanic and Atmospheric Administration (NOAA), Office for Coastal Management, pursuant to NOAA Award No. NA21NOS4190136. The views expressed herein are those of the author(s) and do not necessarily reflect the views of NOAA, the U.S. Department of Commerce, or any of their subagencies.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Texas Coastal Nutrient Input Repository (Phase 1 - Lavaca Bay)
================
Michael Schramm - Texas Water Resources Institute, Research Specialist

This is the analysis code and data for the Texas Coastal Nutrient Input
Repository project. This project develops estimates of actual and
[![License: CC BY
4.0](https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)

This repository contains code and data for the Texas Coastal Nutrient
Input Repository project. This project develops estimates of actual and
flow-normalized daily nitrate (NO<sup>3</sup>-N) and total phosphorus
(TP) watershed loads. Reports and publications are forthcoming.

Expand All @@ -19,6 +21,11 @@ renv::restore()
targets::tar_make()
```

## Data Download

Metadata and download links for nutrient loading data (csv files) are
located here: <https://txwri.github.io/lavaca-nutrients/>

## Funding

This project was funded by a Texas Coastal Management Program grant
Expand Down
24 changes: 12 additions & 12 deletions data/Output/metadata/access.csv
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
fileName,name,contentUrl,encodingFormat
no3_annual_loads.csv,no3_annual_loads,NA,csv
no3_annual_loads_flow_normalized.csv,no3_annual_loads_flow_normalized,NA,csv
tp_annual_loads.csv,tp_annual_loads,NA,csv
tp_annual_loads_flow_normalized.csv,tp_annual_loads_flow_normalized,NA,csv
no3_daily_loads.csv,no3_daily_loads,NA,csv
no3_daily_loads_flow_normalized.csv,no3_daily_loads_flow_normalized,NA,csv
tp_daily_loads.csv,tp_daily_loads,NA,csv
tp_daily_loads_flow_normalized.csv,tp_daily_loads_flow_normalized,NA,csv
no3_monthly_loads.csv,no3_monthly_loads,NA,csv
no3_monthly_loads_flow_normalized.csv,no3_monthly_loads_flow_normalized,NA,csv
tp_monthly_loads.csv,tp_monthly_loads,NA,csv
tp_monthly_loads_flow_normalized.csv,tp_monthly_loads_flow_normalized,NA,csv
no3_annual_loads.csv,no3_annual_loads,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/no3_annual_loads.csv,csv
no3_annual_loads_flow_normalized.csv,no3_annual_loads_flow_normalized,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/no3_annual_loads_flow_normalized.csv,csv
tp_annual_loads.csv,tp_annual_loads,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/tp_annual_loads.csv,csv
tp_annual_loads_flow_normalized.csv,tp_annual_loads_flow_normalized,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/tp_annual_loads_flow_normalized.csv,csv
no3_daily_loads.csv,no3_daily_loads,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/no3_daily_loads.csv,csv
no3_daily_loads_flow_normalized.csv,no3_daily_loads_flow_normalized,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/no3_daily_loads_flow_normalized.csv,csv
tp_daily_loads.csv,tp_daily_loads,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/tp_daily_loads.csv,csv
tp_daily_loads_flow_normalized.csv,tp_daily_loads_flow_normalized,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/tp_daily_loads_flow_normalized.csv,csv
no3_monthly_loads.csv,no3_monthly_loads,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/no3_monthly_loads.csv,csv
no3_monthly_loads_flow_normalized.csv,no3_monthly_loads_flow_normalized,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/no3_monthly_loads_flow_normalized.csv,csv
tp_monthly_loads.csv,tp_monthly_loads,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/tp_monthly_loads.csv,csv
tp_monthly_loads_flow_normalized.csv,tp_monthly_loads_flow_normalized,https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/tp_monthly_loads_flow_normalized.csv,csv
24 changes: 12 additions & 12 deletions data/Output/metadata/dataspice.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,73 +289,73 @@
{
"type": "DataDownload",
"name": "no3_annual_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/no3_annual_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "no3_annual_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/no3_annual_loads_flow_normalized.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_annual_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/tp_annual_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_annual_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/tp_annual_loads_flow_normalized.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "no3_daily_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/no3_daily_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "no3_daily_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/no3_daily_loads_flow_normalized.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_daily_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/tp_daily_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_daily_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/tp_daily_loads_flow_normalized.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "no3_monthly_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/no3_monthly_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "no3_monthly_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/no3_monthly_loads_flow_normalized.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_monthly_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/tp_monthly_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_monthly_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/tp_monthly_loads_flow_normalized.csv",
"encodingFormat": "csv"
}
]
Expand Down
48 changes: 24 additions & 24 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,73 +294,73 @@
{
"type": "DataDownload",
"name": "no3_annual_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/no3_annual_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "no3_annual_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/no3_annual_loads_flow_normalized.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_annual_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/tp_annual_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_annual_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/tp_annual_loads_flow_normalized.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "no3_daily_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/no3_daily_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "no3_daily_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/no3_daily_loads_flow_normalized.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_daily_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/tp_daily_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_daily_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/tp_daily_loads_flow_normalized.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "no3_monthly_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/no3_monthly_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "no3_monthly_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/no3_monthly_loads_flow_normalized.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_monthly_loads",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/tp_monthly_loads.csv",
"encodingFormat": "csv"
},
{
"type": "DataDownload",
"name": "tp_monthly_loads_flow_normalized",
"contentUrl": null,
"contentUrl": "https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/tp_monthly_loads_flow_normalized.csv",
"encodingFormat": "csv"
}
]
Expand Down Expand Up @@ -709,62 +709,62 @@ <h2>Distribution</h2>
<tr>
<td><code>no3_annual_loads</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/no3_annual_loads.csv">Download</a></td>
</tr>
<tr>
<td><code>no3_annual_loads_flow_normalized</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/no3_annual_loads_flow_normalized.csv">Download</a></td>
</tr>
<tr>
<td><code>tp_annual_loads</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/tp_annual_loads.csv">Download</a></td>
</tr>
<tr>
<td><code>tp_annual_loads_flow_normalized</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/annual_loads/tp_annual_loads_flow_normalized.csv">Download</a></td>
</tr>
<tr>
<td><code>no3_daily_loads</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/no3_daily_loads.csv">Download</a></td>
</tr>
<tr>
<td><code>no3_daily_loads_flow_normalized</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/no3_daily_loads_flow_normalized.csv">Download</a></td>
</tr>
<tr>
<td><code>tp_daily_loads</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/tp_daily_loads.csv">Download</a></td>
</tr>
<tr>
<td><code>tp_daily_loads_flow_normalized</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/daily_loads/tp_daily_loads_flow_normalized.csv">Download</a></td>
</tr>
<tr>
<td><code>no3_monthly_loads</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/no3_monthly_loads.csv">Download</a></td>
</tr>
<tr>
<td><code>no3_monthly_loads_flow_normalized</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/no3_monthly_loads_flow_normalized.csv">Download</a></td>
</tr>
<tr>
<td><code>tp_monthly_loads</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/tp_monthly_loads.csv">Download</a></td>
</tr>
<tr>
<td><code>tp_monthly_loads_flow_normalized</code></td>
<td><code>csv</code></td>
<td><a href="">Download</a></td>
<td><a href="https://github.com/txwri/lavaca-nutrients/blob/main/data/Output/monthly_loads/tp_monthly_loads_flow_normalized.csv">Download</a></td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit cf4792b

Please sign in to comment.