r-spatial / rgee

Google Earth Engine for R
https://r-spatial.github.io/rgee/
Other
677 stars 146 forks source link

How to export all bands separately of one satelital image (one image per band)? #183

Closed AlvaroMCMC closed 3 years ago

AlvaroMCMC commented 3 years ago

What I do is export an image after selecting its bands with the same resolution. In this example, I selected the 4, 3 and 2 of some sentinel image. Is there a way to export all bands (one image per band)?. I know they have different spatial resolutions (10, 30, 60 m..).

library(rgee)

What I do:

#selecting bands with the same resolution (image is sentinel)
image_432 <- image$select(c('B4','B3','B2'))

imagen_descargada <- ee_as_raster(image = image_432, 
                                   region = image_432$geometry(),
                                   dsn = "image.tif",
                                   scale = 10) 
csaybar commented 3 years ago

See https://developers.google.com/earth-engine/guides/scale