getDataWS: Export data.frame from waterWeatherStation Object

View source: R/water_WeatherStation.R

getDataWSR Documentation

Export data.frame from waterWeatherStation Object

Description

Export weather conditions at the satellite overpass from a waterWeatherStation object

Usage

getDataWS(WeatherStation)

Arguments

WeatherStation

waterWeatherStation object. See read.WSdata

Value

A one-row data.frame with the conditions at the satellite overpass: wind (m/s), RH (%), temp (Celsius), radiation (W/m2), height (m), lat, long, elev (m), DOY (day of year), hours (decimal hour of the overpass in the weather station time zone) and long.z (longitude of the centre of that time zone, 15 degrees per hour of UTC offset, used by hourlyET()). An error is given if the object has no conditions at the overpass (at.sat).

Author(s)

Guillermo Federico Olmedo

See Also

Other Weather station related functions: plot.waterWeatherStation(), print.waterWeatherStation(), read.WSdata(), read.WSdata2()

Examples

# a small window of the Landsat 7 example scene, to run quickly
MTL <- system.file("extdata", "L7.MTL.txt", package = "water")
WeatherStation <- read.WSdata(WSdata = system.file("extdata", "apples.csv", package = "water"),
  date.format = "%d/%m/%Y", lat = -35.42222, long = -71.38639, elev = 201, height = 2.2,
  cf = c(1, 0.2777778, 1), tz = "America/Santiago", MTL = MTL)
image.DN <- terra::rast(L7_Talca)[1:60, 1:80, drop = FALSE]
DEM <- terra::rast(DEM_Talca)[1:60, 1:80, drop = FALSE]
getDataWS(WeatherStation)

water documentation built on Nov. 25, 2026, 5:08 p.m.