write.eden: Write EDEN data to disk

View source: R/write_EDEN.R

write.edenR Documentation

Write EDEN data to disk

Description

Write an EDEN object (list with data and dates) to a file. Works only on SpatRaster data (raster data will be converted to SpatRaster). Two files

Usage

write.eden(x, filename)

Arguments

x

EDEN object

filename

character. Output filename with or without a file extension; extension is ignored. two files are saved: (1) a geoTiff with the data, and (2) a text file with the dates. These are combined when loaded using 'read.eden()'

Value

none

Examples


## Not run: 
dat1 <- getEDEN(EDEN_date = "2022-01-01", quarterly = TRUE, returnType = 'terra')

write.eden(x = dat1, filename = "test_dat1.tif")
newdat <- read.eden("test_dat1.tif")

newdat


## End(Not run)


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