This function writes a stars object into a raster file
write_StarsStack(StarsObj, dsn, BandNames = NULL, datatype = "Float32")
Arguments
- StarsObj
list. stars object containing raster data. Can be produced with function Crop_n_resample_S2
- dsn
character. path where to store the image produced
- BandNames
character. vector of band names to be assigned to the raster
- datatype
character. should be Int16 or Float64 for example