tests/write.R

suppressPackageStartupMessages(library(stars))

tif = system.file("tif/L7_ETMs.tif", package = "stars")
(x = read_stars(tif))

# write stars object:
write_stars(x, tempfile(), driver = "GTiff")

# write stars_proxy object:
(x = read_stars(tif, proxy = TRUE))
write_stars(x, tempfile(), driver = "GTiff")

Try the stars package in your browser

Any scripts or data that you put into this service are public.

stars documentation built on Sept. 11, 2023, 5:10 p.m.