rawsDF_isValid: Test for correct structure for a _rawsDF_ object

View source: R/rawsDF_utils.R

rawsDF_isValidR Documentation

Test for correct structure for a rawsDF object

Description

The rawsDF is checked for the presence of core data columns

Core columns include:

  • datetime – datetime of the observation

  • 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)

  • fuelMoisture – fuel moisture

  • fuelTemperature – fuel temperature (C)

  • monitorType – FW13 or WRCC depending on data source

  • nwsID – NWS station identifier (for FW13 data)

  • wrccID – WRCC station identifier (for WRCC data)

  • locationName – English language station name

  • longitude – decimal degrees E

  • latitude – decimal degrees N

  • timezone – timezone of the station

  • elevation – elevation of station in m

Usage

rawsDF_isValid(rawsDF = NULL)

Arguments

rawsDF

rawsDF object

Value

TRUE if rawsDF has the correct structure, FALSE otherwise.

Examples


library(RAWSmet)

rawsDF <- example_cefa_Saddle_Mountain %>% raws_toRawsDF()

rawsDF_isValid(rawsDF)



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