Learn R Programming

mesonet (version 0.0.2)

mnet_read_mts: Read an Oklahoma Mesonet time series file

Description

Read an Oklahoma Mesonet time series file

Usage

mnet_read_mts(file_path)

Value

A data frame with Oklahoma Mesonet data. See mnet_variable_definition() or the table below for the ID, variable name, unit and description for each column.

IDNameUnitDescription
PRESStation Atmospheric PressurekPa5-minute averaged atmospheric pressure.
RAINPrecipitationmillimetersLiquid precipitation accumulation since 0000 UTC. Frozen precipitation cannot be recorded until it melts; therefore, precipitation from snow may not be recorded until several days after the snow event.
RELHRelative Humiditypercent5-minute averaged relative humidity at 1.5m.
SRADSolar Radiationwatts per square meter5-minute averaged downwelling global solar radiation.
STIDStation IDStation ID
STNMStation NumberStation Number
TA9MAir Temperature at 9mdegrees Celsius5-minute averaged air temperature at 9m
TAIRAir Temperaturedegrees Celsius5-minute averaged air temperature at 1.5m.
TB05Temperature Under Bare Soil at 5cmdegrees Celsius15-minute averaged temperature under bare soil at 5cm. This variable is only available prior to December 1, 2013.
TB10Temperature Under Bare Soil at 10cmdegrees Celsius15-minute averaged temperature under bare soil at 10cm.
TIMETimeminutes after base timeMinutes after base time (typically 0000 UTC)
TR05Soil Moisture Calibrated Delta-T at 5cmdegrees Celsius30-minute calibrated change in temperature of soil over time after a heat pulse is introduced. Used to calculate soil water potential, fractional water index, or volumetric water.
TR25Soil Moisture Calibrated Delta-T at 25cmdegrees Celsius30-minute calibrated change in temperature of soil over time after a heat pulse is introduced. Used to calculate soil water potential, fractional water index, or volumetric water.
TR60Soil Moisture Calibrated Delta-T at 60cmdegrees Celsius30-minute calibrated change in temperature of soil over time after a heat pulse is introduced. Used to calculate soil water potential, fractional water index, or volumetric water.
TR75Soil Moisture Calibrated Delta-T at 75cmdegrees Celsius30-minute calibrated change in temperature of soil over time after a heat pulse is introduced. Used to calculate soil water potential, fractional water index, or volumetric water.
TS05Temperature Under Native Vegetation at 5cmdegrees Celsius15-minute averaged temperature under native vegetation at 5cm.
TS10Temperature Under Native Vegetation at 10cmdegrees Celsius15-minute averaged temperature under native vegetation at 10cm.
TS25Temperature Under Native Vegetation at 25cmdegrees Celsius15-minute averaged temperature under native vegetation at 25cm. This variable is only available after and including December 1, 2013.
TS30Temperature Under Native Vegetation at 30cmdegrees Celsius15-minute averaged temperature under native vegetation at 30cm. This variable is only available prior to December 1, 2013.
TS45Temperature Under Native Vegetation at 45cmdegrees Celsius15-minute averaged temperature under native vegetation at 45cm.
TS60Temperature Under Native Vegetation at 60cmdegrees Celsius15-minute averaged temperature under native vegetation at 60cm. This variable is only available after and including December 1, 2013.
VW05Volumetric soil water Under Native Vegetation at 5cmcm^3^ cm^-3^5-minute averaged volumetric soil water under native vegetation at 5cm.
VW25Volumetric soil water Under Native Vegetation at 25cmcm^3^ cm^-3^5-minute averaged volumetric soil water under native vegetation at 25cm.
VW45Volumetric soil water Under Native Vegetation at 45cmcm^3^ cm^-3^5-minute averaged volumetric soil water under native vegetation at 45cm.
WDIRWind Directiondegrees5-minute averaged wind direction at 10m.
WDSDWind Direction Standard DeviationdegreesStandard deviation of wind direction during the 5-minute interval.
WMAXMaximum Wind Speedmeters per secondHighest 3-second wind speed at 10m sample.
WS2M2m Wind Speedmeters per second5-minute averaged wind speed at 2m
WSPDWind Speedmeters per second5-minute averaged wind speed at 10m.
WSSDWind Speed Standard Deviationmeters per secondStandard deviation of wind speed during the 5-minute interval.
WVECWind Vectormeters per second5-minute averaged wind velocity (speed and direction accounted for) at 10m.

Arguments

file_path

file path to a single Oklahoma Mesonet time series (MTS) file

Examples

Run this code

# Create example file cache
local_cache <- mnet_test_cache(mts_files = TRUE)

example_file <- file.path(local_cache, "mts/1994/01/01/19940101acme.mts")

# Read data from example file
mnet_read_mts(example_file)

# Clean up example file cache
unlink(local_cache, recursive = TRUE)

Run the code above in your browser using DataLab