How can one make a Rasterbrick
in R
from several hdf5
files? Often, data are provided in hdf5
format and one has to convert it to a more friendly format for easy handling.
At the moment I know of the rhdf5 package
but how to get a RasterBrick
is that which I am unsure about.
source("http://bioconductor.org/biocLite.R")
biocLite("rhdf5")
library("rhdf5")
library("raster")
You can access several hdf5 files on this link http://mirador.gsfc.nasa.gov/cgi-bin/mirador/cart.pl?C1=GPM_3IMERGHH&CGISESSID=fb3b45e091f081aba8823f3e3f85a7d9&LBT_THRESHOLD=4000000.
You can use two files for illustration.
Thanks!
AT.