write_bin | R Documentation |
Wrapper functions for terra::writeRaster()
.
write_bin(bin, path)
bin |
SpatRaster. |
path |
Character vector of length one. Path for writing the image. |
No return value. Called for side effects.
Other Tool Functions:
calc_oor_index()
,
calc_spherical_distance()
,
colorfulness()
,
correct_vignetting()
,
defuzzify()
,
display_caim()
,
extract_dn()
,
extract_feature()
,
extract_rel_radiance()
,
extract_sky_points()
,
extract_sun_coord()
,
find_sky_pixels()
,
masking()
,
optim_dist_to_black()
,
optim_normalize()
,
percentage_of_clipped_highlights()
,
read_bin()
,
read_caim()
,
read_caim_raw()
,
read_ootb_sky_model()
,
sor_filter()
,
vicinity_filter()
,
write_caim()
,
write_ootb_sky_model()
## Not run:
z <- zenith_image(1000, lens())
m <- !is.na(z)
my_file <- file.path(tempdir(), "mask")
write_bin(m, my_file)
my_file <- as.filename(my_file) %>%
insert(., ext = "tif", replace = TRUE) %>%
as.character()
m_from_disk <- read_bin(my_file)
plot(m - m_from_disk)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.