dbpf_observations_meta: Get raw observations

View source: R/dbpf_observations_meta.R

dbpf_observations_metaR Documentation

Get raw observations

Description

Get raw observations per location, height and time slice.

Usage

dbpf_observations_meta(
  con,
  location_name,
  height_top = 5,
  height_bot = -15,
  time_b = "1950-01-01 00:00:00+00",
  time_e = "2050-01-01 00:00:00+00",
  verbose = FALSE
)

Arguments

con

Database connection object, as returned by dbpf_con()

location_name

Character string or list of several with the location name(s) to be queried for.

height_top

Uppermost height [m] (positive above surface, negative when below surface) of sensor to return in this query.

height_bot

Lowermost height [m] (positive above surface, negative when below surface) of sensor to return in this query.

time_b

Begin time for the interval to be analysed. Use the format "1950-01-01 00:00:00+00"

time_e

End time for the interval to be analysed. Use the format "1950-01-01 00:00:00+00"

verbose

Provide terminal output of the query string? (defaults to FALSE)

Details

Fast way to access raw observation data without aggregation.

The unit_of_measurement variable is used to distinguish between different measurement types. The default (C) will return observations that measure temperature in degrees celsius. To obtain observations of relative humidity, use "

Value

List of all locations in DB

Author(s)

Stephan Gruber <stephan.gruber@carleton.ca>

Examples

## Not run: 
con <- dbpf_con()
obs <- dbpf_observations_meta(con, "NGO-DD-1004_ST02")
dbDisconnect(con)

## End(Not run)

geocryology/PermafrostDB documentation built on April 17, 2025, 11:54 a.m.