fixes in Plot- and ReadHDF5FieldData

pull/1/head
Thorsten Liebig 2011-01-02 11:28:03 +01:00
parent 2859b394c2
commit 7d09021dd4
2 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ for n=1:numel(Field)
xlabel( 'x' );
ylabel( 'y' );
end
title(fields.names{n});
title(fields.TD.names{n});
%view(3)
axis equal
if (isfield(PlotArgs,'Limit'))

View File

@ -36,7 +36,7 @@ for n=1:numel(info.GroupHierarchy.Groups)
%search and read TD data
if strcmp(info.GroupHierarchy.Groups(n).Groups(nGroup).Name,'/FieldData/TD')
for m=1:numel(info.GroupHierarchy.Groups(n).Groups(nGroup).Datasets)
TD.names{m} = info.GroupHierarchy.Groups(n).Groups(nGroup).Datasets(m).Name;
hdf_fielddata.TD.names{m} = info.GroupHierarchy.Groups(n).Groups(nGroup).Datasets(m).Name;
hdf_fielddata.TD.time(m) = double(info.GroupHierarchy.Groups(n).Groups(nGroup).Datasets(m).Attributes.Value);
end
end
@ -52,9 +52,9 @@ for n=1:numel(info.GroupHierarchy.Groups)
end
end
if (numel(TD.names)>0)
for n=1:numel(TD.names)
hdf_fielddata.TD.values{n} = double(hdf5read(file,TD.names{n}));
if (numel(hdf_fielddata.TD.names)>0)
for n=1:numel(hdf_fielddata.TD.names)
hdf_fielddata.TD.values{n} = double(hdf5read(file,hdf_fielddata.TD.names{n}));
end
end