get_sensor: Read and prepare a time series

View source: R/harmonised-reading.R

get_sensorR Documentation

Read and prepare a time series

Description

This function get a raw time series related with a sensor and transform it to the one with the required characteristics (e.g. time aggregation, time alignment, cumulative to instantaneous, irregular to regular time steps...). It also integrates the calculation of the energy cost and energy emissions.

Usage

get_sensor(
  timeseriesObject,
  buildingsRdf,
  sensorId,
  tz = NULL,
  outputFrequency = NULL,
  aggFunctions = NULL,
  useEstimatedValues = F,
  integrateCost = T,
  integrateEmissions = T,
  transformToAggregatableMeasuredProperty = F,
  aggregatableMeasuredPropertyName = NULL,
  defaultFactorsByMeasuredProperty = NULL,
  obtainMetadata = F
)

Arguments

timeseriesObject

<string> path of JSON files, or <list> of time series.

sensorId

<string> containing the sensor identifier.

tz

<string> specifying the local time zone related to the building in analysis. The format of this time zones are defined by the IANA Time Zone Database (https://www.iana.org/time-zones).

outputFrequency

<string> defining the frequency selected as output. It must follow ISO 8601 format representing the time step.

aggFunctions

<string> describing the possible aggregation functions of the resultant time series. Possible values: 'SUM', 'AVG', 'HDD', 'CDD'.

useEstimatedValues

<boolean> describing if the estimated values of time series should be taken into account.

buildingSubject

<uri> containing the building subject.

ratioCorrection

<boolean> describing whether a ratio correction should be done, or not. Important to set to TRUE when time series contain gaps.

Value

<data.frame> containing the resultant time series.


biggproject/biggr documentation built on Oct. 2, 2024, 11:13 p.m.