Hey Akiema,
Have you tried the h5read function?
Here is an example of how to read multiple files (it also depends on which data you want to extract):
cd 'My_Directory_Path' % Type in the path to your folder in place of My_Directory_Path, but keep the single quotes
list=dir('*.h5f'); % Stores a list of all your data files ending with .h5f
list_end=length(list); % Stores the number of files on the list
for i=1:list_end
fname=list(i).name
data(:,:,i)= h5read(fname,'DATASETNAME') % You must know the actual names of the datasets stored in the files to fill in DATASETNAME. You can look at the metadata from the data source website, or you can use %%%%%%%%%%%%%%%%%%%%%%%h5disp('filename') to see the metadata. This line will store multiple MxN matrices (if your list has 5 files, this should store 5 matrices.)
end
Try this out first and see how it works for you. Usually you have to apply some conversion factor or scaling factor to the data to transform values to their real values (e.g. temperature might be stored as 3000 degrees Celsius, but you need to divide by 100 to get the actual value of 30 degrees Celsius.) Any necessary conversion factors should be noted in the metadata. So the key here is.... make sure you look at the metadata! :)
Let me know if you're trying to extract data for just one point or over a large area. The code above was just a quick example of how to read all the files, but if you just want one pixel from each data file, you would rewrite the h5read line as:
data(row, column,i)= h5read(fname,'DATASETNAME') %%% row is the row index of the pixel of interest, and column is the column index of the pixel of interest.
Give it a shot, and keep me updated on how it goes! Also, let me know if you still have memory issues. You might need to use a computer that has more RAM.
Take care,
Adam A