我有一个光栅图像,其尺寸为 2803行,5303列,共14864309个像元
。我想在该光栅图像中创建1000个随机点,并生成一个tiff文件。以下是我的光栅图像:
raster2
class : RasterLayer
dimensions : 2803, 5303, 14864309 (nrow, ncol, ncell)
resolution : 0.008333333, 0.008333333 (x, y)
extent : 60.85, 105.0417, 15.95833, 39.31667 (xmin, xmax, ymin, ymax)
crs : +proj=longlat +datum=WGS84 +no_defs
source : C:/NPP.tif
names : IPSLNPP
values : 0, 0.9097273 (min, max)