YOWNplot_RawData: YOWN raw data writing

View source: R/YOWNplot_RawData.R

YOWNplot_RawDataR Documentation

YOWN raw data writing

Description

This function downloads YOWN level data from Aquarius, screens data graded below "C", writes the csv file containing the entire period of record, and copies the grading key from the master location to the SaveTo directory

Usage

YOWNplot_RawData(
  AQID,
  timeSeriesID = "Wlevel_bgs.Calculated",
  saveTo = "desktop",
  login = Sys.getenv(c("AQUSER", "AQPASS")),
  server = "https://yukon.aquaticinformatics.net/AQUARIUS"
)

Arguments

AQID

Identity of YOWN site in the following format: "YOWN-XXXX" or "YOWN-XXXXD"

timeSeriesID

Identity of the time series exactly as written in Aquarius (eg."Wlevel_bgs.Calculated")

saveTo

Location for data files to be saved. Will create directory if it doesn't exist. Defaults to user's desktop.

login

Your Aquarius login credentials as a character vector of two (eg. c("cmfische", "password") Default pulls information from your .renviron profile; see details. Passed to WRBtools::aq_download().

server

The URL for your organization's Aquarius web server. Default is for the Yukon Water Resources Branch. Passed to WRBtools::aq_download().

Details

To store login credentials in your .renviron profile, run usethis::edit_r_environ() and enter your username and password as value pairs, as AQUSER="your username" and AQPASS = "your password".

Value

Writes .pdf of the full period of record for a specified YOWN site and time series ID, as well as a .csv containing all the raw data and copies a grade key to interpret data grading


YukonWRB/WRBplots documentation built on Sept. 29, 2023, 2:05 p.m.