geomet_data: Query GeoMet for data

Description Usage Arguments Examples

View source: R/geomet.R

Description

Query geomet webservice for ECCC data

Usage

1
2
3
geomet_data(parameter, station_number = NULL, as_spatial = TRUE,
  start_date = NULL, end_date = NULL, page_limit = 500,
  verbose = FALSE)

Arguments

parameter

One of geomet_collection()$name

station_number

A meteorological/hydrometric station number.

as_spatial

Convert to sf object. Defaults to TRUE.

start_date

Accepts either YYYY-MM-DD. If this argument is left missing, the function will return all data prior to end_date. If both are NULL all available data is returned.

end_date

Accepts either YYYY-MM-DD. If this argument is left missing, the function will return all data after start_date. If both are NULL all available data is returned.

page_limit

Default to 500. You likely will not need to change this value. This represents the maximum number of records that can be requested for each pagination request.

verbose

Defaults to FALSE. Do you want the URLs used to make the GET call to be printed?

Examples

1
2
3
4
5
6
geomet_data(parameter = "hydrometric-daily-mean", station_number = "10PC003", start_date = "1983-07-04")

## Get all ahccd-stations
geomet_data("ahccd-stations")

geomet_data("ahccd-monthly", station_number = "1171020")

bcgov/geometr documentation built on May 6, 2021, 3:21 a.m.