I have met with a problem when importing raster data of light intensity. Concretely, the following file contains raster data of Chinese nightlight intensity. I write the following command to import it:
file_temp = st_read(dsn = 'path/tif.gdb', layer = 'noflare_20131')
light = raster(file_temp)
plot(light)
link for replication data: https://www.dropbox.com/s/o8rn7cnb4a5rc6j/tif.gdb.zip?dl=0
However, it seems that I have only extracted an empty polygon into R without values of light intensity. In contrast, when importing the data into ArcGIS, it could be displayed successfully.
I guess that I should add some options to the command st_read()
or raster()
while have not figured out a specific solution.