Hello Andreas,
If i understand well your question you need to extract data from Slice.
if yes!
Here i'm joining Simo's Matlab Code that reads slice file data into a
3-dimensional array
fonction [T, Time] = slread (fname, Tstart, Tend, Tstep)
% SLREAD lit un fichier de tranche FDS
% [T, Time] = slread (fname, Tstart, Plutôt [, Tstep]);
% Tstart est l'heure de début
% Plutôt est temps de la fin
% Tstep est pas de temps de décharges
%
% T contient les données
% Durée contient les points dans le temps
if (nargin <4), Tstep = Tend-Tstart; fin
%
Time = 0;
%
if (filesep == '/')
= fid fopen (fname, «r», «b»);
autre
= fid fopen (fname, «r», «l»);
fin
R4b (FID);
Str1 = char ([fread (FID, 30, 'schar')] ');
R4b (FID);
R4b (FID);
Str2 = char ([fread (FID, 30, 'schar')] ');
R4b (FID);
R4b (FID);
Str3 = char ([fread (FID, 30, 'schar')] ');
R4b (FID);
%
R4b (FID);
Indx = [fread (FID, 6, «int32»)] »;
R4b (FID);
%
% Allouer T
%
Isize = Indx (2) -Indx (1) 1;
Jsize = Indx (4) -Indx (3) 1;
Ksize = Indx (6) -Indx (5) 1;
if (iSize == 1)
M = Jsize;
N = Ksize;
elseif (Jsize == 1)
M = iSize;
N = Ksize;
autre
M = iSize;
N = Jsize;
fin
%
Nrun = max (1, rond ((Tend-Tstart) / Tstep));
T (N, M, Nrun) = 0;
%
st = 1;
%
tandis que Time <Tstart,
R4b (FID);
Temps (st) = fread (FID, 1, 'Float32');
R4b (FID);
%
R4b (FID);
T (:,:, st) = fread (FID, [M, N], 'float32') ';
R4b (FID);
%
fin
%
tandis que Time <Plutôt,
%
st = st + 1;
%
R4b (FID);
Temps (st) = fread (FID, 1, 'Float32');
R4b (FID);
%
R4b (FID);
T (:,:, st) = fread (FID, [M, N], 'float32') ';
R4b (FID);
%
fin
%
% T = [T / st] »;
% Si st> 1,
% Disp (['nombre d'étapes de calcul de la moyenne =' num2str (er) '.'])
% Fin
%
fclose (FID);
fonction R4b (FID)
fread (FID, 4, 'int8');
Cheers Mohammed
2015-03-13 9:36 UTC+01:00, Andreas <
ott.a...@me.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "FDS and Smokeview Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
fds-smv+u...@googlegroups.com.
> To post to this group, send email to
fds...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/fds-smv/7ef08166-e6e3-4108-9fdf-269c0e3204ee%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
>