convertEDEN | R Documentation |
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.
convertEDEN(EDENdata, to = "ft_NGVD29")
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" |
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.
## Not run: edenDat <- getEDEN(returnType = 'terra') plot.eden(edenDat) edenDat$data <- convertEDEN(EDENdata = edenDat$data, to = "ft_NGVD29") plot.eden(edenDat) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.