createLinkedHDF5

PURPOSE ^

createLinkedHDF5 creates a HDF file that references the Sourcefile

SYNOPSIS ^

function [status] = createLinkedHDF5(SourceFile,TargetPath,ID)

DESCRIPTION ^

createLinkedHDF5 creates a HDF file that references the Sourcefile
   TargetPath is the STorage Location, ID the Foldername
   Status returns true if the function was sucessfull

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [status] = createLinkedHDF5(SourceFile,TargetPath,ID)
0002 %createLinkedHDF5 creates a HDF file that references the Sourcefile
0003 %   TargetPath is the STorage Location, ID the Foldername
0004 %   Status returns true if the function was sucessfull
0005 
0006 plist_id = 'H5P_DEFAULT';
0007 
0008 % try
0009     fid = H5F.create(fullfile(TargetPath,ID,[ID,'_data.h5']));
0010     %create External Link to Sourcefile in the Group linkToExternal
0011     H5L.create_external(['..\data\',SourceFile],'/',fid, SourceFile ,plist_id,plist_id);
0012     H5F.close(fid);
0013     status = 1;
0014 % catch
0015 %     warning('No linked HDF file was created');
0016 %     status = 0;
0017 % end
0018 
0019 end
0020

Generated on Tue 03-Aug-2021 18:32:18 by m2html © 2005