The StreamLight package contains two primary functions for predicting photosynthetically active radiation (PAR) for rivers and streams:
Usage: If you use the StreamLight package in your research please cite this package. To see the suggested citation for this package, run citation(“StreamLight”) in the R prompt. Additionally, please cite the appropriate manuscript associated with the function you used:
Package support: Development of the StreamLight package has been supported by a National Science Foundation (NSF) Macrosystem Program Grant (#EF 1442439) and by the USGS Water Availability and Use Science Program.
See the full StreamLight documentation for individual articles on how to use the package. The documentation page contains a number of articles that detail the usage of the StreamLight and StreamLightUtils packages. Throughout these articles some terms are emphasized using the below key.
Key
Individual articles go into depth on each of the following subjects.
Outline
Download and process NLDAS incoming shortwave radiation
Covers downloading and processing National Land Data Assimilation System (NLDAS) total incoming shortwave radiation (W m-2) using the StreamLightUtils package.
Download and process MODIS LAI
Covers downloading and processing MODIS leaf area index (LAI, m2 m-2) using the StreamLightUtils package.
Using stream_light
Covers the creation of driver files, a parameter file, and running stream_light.
Using aqua_light
Covers the creation of driver files, a parameter file, and running aqua_light.
For convenience, a series of functions have been included in the companion package StreamLightUtils to derive some of the values required for parameter files and to create standardized driver files for use with StreamLight. Where possible, remotely sensed data products with good broadscale coverage are used to derive these inputs within StreamLightUtils. There are of course many potential sources for similar data that could be used to create driver files and users are welcome to create their own workflow for creating driver or parameter files.
For first time installation run the following code:
#Install the devtools package if you do not already have it
install.packages("devtools")
#Use the devtools packge to install StreamLightUtils
devtools::install_github("psavoy/StreamLightUtils")
devtools::install_github("psavoy/StreamLight")
Before beginning, Load the StreamLightUtils and StreamLight libraries.