raws_isRaws: Test for correct structure for a _raws_timeseries_ object

View source: R/utils-raws.R

raws_isRawsR Documentation

Test for correct structure for a raws_timeseries object

Description

The rawsObject is checked for the 'raws_timeseries' class name and presence of core meta and data columns.

Core meta columns include:

  • deviceDeploymentID – unique identifier (see MazmaLocationUtils)

  • deviceID – device identifier

  • locationID – location identifier (see MazmaLocationUtils)

  • locationName – English language name

  • longitude – decimal degrees E

  • latitude – decimal degrees N

  • elevation – elevation of station in m

  • countryCode – ISO 3166-1 alpha-2

  • stateCode – ISO 3166-2 alpha-2

  • timezone – Olson time zone

  • nwsID – NWS station identifier (for FW13 data)

  • wrccID – WRCC station identifier (for WRCC data)

  • agencyName – responsible agency (in WRCC data)

Core data columns include:

  • datetime – measurement time (UTC)

  • temperature – temperature (C)

  • humidity – humidity (%)

  • windSpeed – wind speed (m/s)

  • windDirection – wind direction (degrees)

  • maxGustSpeed – speed of max gust (m/s)

  • maxGustDirection – direction of max gust (degrees)

  • precipitation – precipitation (mm/h)

  • solarRadiation – solar radiation (W/m^2)

Usage

raws_isRaws(rawsObject = NULL)

Arguments

rawsObject

raws_timeseries object

Value

TRUE if rawsObject has the correct structure, FALSE otherwise.

Examples


library(RAWSmet)

raws_isRaws(example_cefa_Saddle_Mountain)
raws_isRaws(example_wrcc_Saddle_Mountain)



MazamaScience/RAWSmet documentation built on May 6, 2023, 6:57 a.m.