convertEDEN: Converts EDEN water surface data between feet NGVD29 and...

View source: R/convertEDEN.R

convertEDENR Documentation

Converts EDEN water surface data between feet NGVD29 and centimeters relative to soil surface

Description

Easily convert between two sets of common EDEN water surface units and datums (cm depth and ft NGVD29). This function makes for easy compatibility bewtween EDEN data (cm depth) and EverForecast output (ft. NGVD29). The conversion relies on the EDEN DEM and a raster layer with NAVD88-NGVD29 conversion factors, built by interpolating between gauges in the EDEN network (https://sofia.usgs.gov/eden/stationlist.php). Both layers are available in fireHydro.

Usage

convertEDEN(EDENdata, to = "ft_NGVD29")

Arguments

EDENdata

geospatial EDEN data, such as that returned by 'getEDEN()$data'

to

unit/datum to convert EDENdata to. Acceptable inputs are "ft_NGVD29" or "cm_soil"

Value

list getEDEN returns a list with two elements: (1) the date used, and (2) a SpatRaster object with water levels (centimeters relative to soil surface) in the EDEN grid.

Examples


## Not run: 
edenDat <- getEDEN(returnType = 'terra')
plot.eden(edenDat)

edenDat$data <- convertEDEN(EDENdata = edenDat$data, to = "ft_NGVD29")
plot.eden(edenDat)

## End(Not run)


troyhill/fireHydro documentation built on Feb. 2, 2023, 12:09 p.m.