PlotRGB, result full black

  Kiến thức lập trình

I’m trying to use plotRGB with my RasterStack using the package raster but it only plot a full black result
Result plot

BLUE_rast <- raster("Multispectral/CB_2014_60m/CB_2014_60m/4_index/reflectance/CB_2014_60m_transparent_reflectance_blue.tif")
GREEN_rast <- raster("Multispectral/CB_2014_60m/CB_2014_60m/4_index/reflectance/CB_2014_60m_transparent_reflectance_green.tif")
RED_rast <- raster("Multispectral/CB_2014_60m/CB_2014_60m/4_index/reflectance/CB_2014_60m_transparent_reflectance_red.tif")
NIR_rast <- raster("Multispectral/CB_2014_60m/CB_2014_60m/4_index/reflectance/CB_2014_60m_transparent_reflectance_nir.tif")
REDEDGE_rast <- raster("Multispectral/CB_2014_60m/CB_2014_60m/4_index/reflectance/CB_2014_60m_transparent_reflectance_red edge.tif")
stack <- stack(BLUE_rast,GREEN_rast,RED_rast, NIR_rast, REDEDGE_rast)
raster::plotRGB(stack, r=3, g=2, b=1)

Any ideas whats going on?
Lea

I tried using the package terra instead of the package raster but same result

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT