Menu
  • HOME
  • TAGS

How to mosaic the same HDF files using this R function?

r,mosaic,hdf

I did find the answer, fortunately. Thanks for your help. hdfs <- c('MOD05_L2.A2009090.0420.051.2010336084010.hdf', 'MOD05_L2.A2009090.0555.051.2010336100338.hdf', 'MOD05_L2.A2009090.0600.051.2010336100514.hdf') mosaicHDF(hdfNames=hdfs, filename='newhdf.hdf', MRTpath='C:/MRT/bin',bands_subset="1 0 0 0", delete=FALSE) But I have a new problem :-) Since there are thousands of HDF files in the folder, How could I write a loop to introduce all HDF files...