HARPgroup / HARParchive

This repo houses HARP code development items, resources, and intermediate work products.
1 stars 0 forks source link

Winter & Spring Streamflow Characterization Rmd - for Onboarding 2023 #825

Open glenncampagna opened 1 year ago

glenncampagna commented 1 year ago

@EllaF21 is leading work on this rmd, and here is where we will share info, questions, and any problems

Choosing USGS gauges representative of large basins of interest

Rivers & basins of interest to us:

Criteria for gauges:

To-do list:

durelles commented 1 year ago

may consider adding gage on lower Roanoke as well before it enters North Carolina?

glenncampagna commented 1 year ago

Guage Locations and Numbers

Guage # Location/River
01636500 Shenandoah (into Potomac)
01668000 Rappahannock (Fredericksburg)
02037500 James (Richmond)
03529500 Powell (Big stone gap VA)
03532000 Powell (Arthur TN)
03524000 Clinch (Cleveland VA)
03527220 Clinch (Looneys gap TN)
02066000 Roanoke (Randolph VA)

EllaF21 commented 1 year ago

@rburghol @jdkleiner

Running into this error with the IHA package. I have switched to an older R version(4.1.2) and checked my Rtools is installed so unsure what its not liking.

install.packages("IHA") WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/ Installing package into ‘C:/Users/ellaf/OneDrive/Documents/R/win-library/4.1’ (as ‘lib’ is unspecified)

Warning in install.packages : package ‘IHA’ is not available for this version of R A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

glenncampagna commented 1 year ago

Custom variables will be used via Render

The render command can be run in the console window of the Rmd to run and knit with the gauge # specified Use: rmarkdown::render([path to rmd], [output file path], params = list([set custom vars])) Example: (glenn's cmnd) rmarkdown::render('~/Desktop/GitHub/HARParchive/HARP-2023-Summer/StreamflowGuagesCaseStudy.Rmd', output_file = '~/Desktop/HARPteam23/streamflowKnit', params = list(rseg.gauge='01636500')) Didn't fully knit and export though:

File C:/HARP/GaugeLocations.png not found in resource path
Error: pandoc document conversion failed with error 99

Update: error fixed and new version knits in html


megan's render cmd:

rmarkdown::render('C:/aa_HARP/aa_GitHub/HARParchive/HARP-2023-Summer/StreamflowGuagesCaseStudy.Rmd', output_file = 'C:/aa_HARP/streamflowKnit', params = list(rseg.gauge='01636500'))

ella's render cmd:

rmarkdown::render('C:/HARP/HARParchive/HARP-2023-Summer/StreamflowGuagesCaseStudy.Rmd', output_file = 'C:/HARP/streamflowKnit', params = list(rseg.gauge='01636500'))
glenncampagna commented 1 year ago

Initial Results/Findings

From 5/18 Meeting