如何从HDF5文件中以TIFF格式将任何变量提取为栅格

时间:2020-01-30 10:52:55

标签: python r python-3.x hdf5 hdf

我有沉淀的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)

List of Groups and Datasets in the HDF5 file

0 个答案:

没有答案