I was wondering if it is possible to unzip and re-zip *.HDF.Z files in Matlab. If it is possible, would you please be so kind to tell me? Many thanks!
Here is a snip of my code at the moment.
% Reading in multiple HDF files
pathName = '/home//Desktop/';
filelist = dir([pathName, '*.7A.HDF.Z']);
for k = 1:numel(filelist)
file_name = filelist(k).name;
%extract(num2str(file_name));
SD_id = hdfsd('start',file_name, 'rdonly');
datafield_name='precipitation';
sds_index = hdfsd('nametoindex', SD_id, datafield_name);
sds_id = hdfsd('select',SD_id, sds_index);