Ignore:
Timestamp:
May 9, 2012, 2:20:26 AM (12 years ago)
Author:
sommeria
Message:

bugs corrected: problems with Dt in read_civxdata and uvmat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_civxdata.m

    r404 r415  
    130130    if isfield(Field,'absolut_time_T0')
    131131        Field.Time=double(Field.absolut_time_T0);
    132         Field.dt=double(Field.dt);
     132        Field.Dt=double(Field.dt);
    133133    else
    134134       errormsg='the input file is not civx';
    135135       Field.CivStage=0;
    136        Field.dt=0;
     136       Field.Dt=0;
    137137    end
    138138elseif test_civ2
    139139    Field.Time=double(Field.absolut_time_T0_2);
    140     Field.dt=double(Field.dt2);
     140    Field.Dt=double(Field.dt2);
    141141else
    142142    errormsg='the input file is not civx';
    143143    Field.CivStage=0;
    144     Field.dt=0;
     144    Field.Dt=0;
    145145end
    146146
     
    172172for ilist=1:length(List)
    173173    switch(List{ilist})
    174         case {'patch2','fix2','civ2','patch','fix','dt2','absolut_time_T0','absolut_time_T0_2','nb_coord','nb_dim','pixcmx','pixcmy'}
     174        case {'patch2','fix2','civ2','patch','fix','dt','dt2','absolut_time_T0','absolut_time_T0_2','nb_coord','nb_dim','pixcmx','pixcmy'}
    175175            ind_remove=[ind_remove ilist];
    176176            Field=rmfield(Field,List{ilist});
     
    178178end
    179179List(ind_remove)=[];
    180 Field.ListGlobalAttribute=[{'NbCoord'},{'NbDim'} List {'Time','TimeUnit','CivStage','CoordUnit'}];
     180Field.ListGlobalAttribute=[{'NbCoord'},{'NbDim'} List {'Time','Dt','TimeUnit','CivStage','CoordUnit'}];
    181181Field.CoordUnit='pixel';
    182182
Note: See TracChangeset for help on using the changeset viewer.