我有沉淀的HDF5文件,在其中可以使用给定的代码查看HDF5文件中存在的组和数据集。图中还显示了组和数据集的快照。我想以tiff格式从组或数据集中获取任何变量作为栅格。或者我想使用csv文件中的一些坐标来获取任何变量的像素值。请帮忙。
library(raster)
library(sp)
library(rgdal)
library(tiff)
library(ncdf4)
library(hdf5r)
library(BiocManager)
BiocManager::install("rhdf5")
library(rhdf5)
setwd("C:\\users\\administrator\\desktop\\files_for_mam_iqra\\HDF_daily\\")
a=h5file("C:\\users\\administrator\\desktop\\files_for_mam_iqra\\HDF_daily\\3B-DAY.GPM.DPRGMI.CORRAGD.20190907-S000000-E235959.250.V06A.hdf5")
list.groups(a)
list.datasets(a)
list.attributes(a)