dbpf_defox_bulk: De-fox data in bulk, as identified by location and time.

View source: R/dbpf_defox_bulk.R

dbpf_defox_bulkR Documentation

De-fox data in bulk, as identified by location and time.

Description

Treatment of subsurface logger that have been exposed at the terrain surface. As we suspect that animals (foxes) yanked loggers out of the ground, we call this de-foxing.

Usage

dbpf_defox_bulk(con, location_name, time_b, time_e, unit_of_measurement = "C")

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.

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"

unit_of_measurement

Unit of measurments, defaults to "C"

Details

The observations identified (1) are added to a set that identifies them as bulk-defoxed and (2) have their height set to 0 m as the sensors are exposed on the ground surface. A check on device ID is performed: Only one device ID can be present at that location during the interval de-foxed. The installation of a new sensor would have ocurred at the correct depth. If a sensor chain is present at the location, all sensors are assumed to be pulled out. The set used is called "Exposed Temperature Sensor". A further check is performed on table observations_sets to detect if some of the observations have already been treated.

Author(s)

Stephan Gruber <stephan.gruber@carleton.ca>

Examples

## Not run: 
con <- dbpf_con()
dbpf_defox_bulk(con,'NGO-DD-1004_ST02', "2016-01-01 00:00:00+00","2016-01-10 23:59:00+00")
dbDisconnect(con)

## End(Not run)


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