get_gwl: Retrieve and format groundwater data from B.C. Data Catalogue

View source: R/readGWLdata.R

get_gwlR Documentation

Retrieve and format groundwater data from B.C. Data Catalogue

Description

Go to the B.C. Groundwater Observation Well Monitoring Network interactive map tool to find your well(s) of interest: https://www2.gov.bc.ca/gov/content?id=2D3DB9BA78DE4377AB4AE2DCEE1B409B

Usage

get_gwl(wells, which = c("all", "recent", "daily"), url = NULL,
  quiet = FALSE)

Arguments

wells

Character vector. The well number(s), accepts either OW000 or 000 format. Note that format OW000 requires three digit numbers, e.g. OW309, OW008, etc.

which

Character. Which data to retrieve all hourly data, recent hourly data, or all daily averages

url

Character. Override the url location of the data

quiet

Logical. Suppress progress messages?

Details

Note that well water levels are measured in meters below the ground. Thus higher values represent deeper levels. Therefore Historical_Daily_Minimum values will be greater than Historical_Daily_Maximum values, as they represent a lower water level.

Daily averages (which = 'daily') are pre-calculated. Note that they only cover days marked as "Validated" in the full hourly dataset.

Value

A dataframe of the groundwater level observations.

Examples

## Not run: 
all_309 <- get_gwl(wells = 309)
recent_309 <- get_gwl(wells = "OW309", which = "recent")
daily_avg_309 <- get_gwl(wells = "OW309", which = "daily")

all_multi < get_gwl(wells = c(309, 89))
recent_multi <- get_gwl(wells = c("OW309", "OW089"), which = "recent")
daily_avg_multi <- get_gwl(wells = c("309", "89"), which = "daily")

## End(Not run)


bcgov/bcgroundwater documentation built on March 18, 2024, 5:43 a.m.