Ignore:
Timestamp:
Nov 19, 2010, 10:44:24 AM (13 years ago)
Author:
sommeria
Message:

merge_proj.m: cleaning
sub_field.m: ?
dataview.m: modifs not finished
name-generator: bug repair for new nom_type
nc2struct: cleaning
uvmat: cleaning
read_civxdata: transform all variables to double
civ: bug repair for new nom_type, not finished

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_civxdata.m

    r93 r127  
    9797test_civ2=isequal(VelTypeOut,'civ2')||isequal(VelTypeOut,'interp2')||isequal(VelTypeOut,'filter2');
    9898if test_civ1
    99     Field.Time=Field.absolut_time_T0;
     99    Field.Time=double(Field.absolut_time_T0);
     100    Field.dt=double(Field.dt);
    100101elseif test_civ2
    101     Field.Time=Field.absolut_time_T0_2;
    102     Field.dt=Field.dt2;
     102    Field.Time=double(Field.absolut_time_T0_2);
     103    Field.dt=double(Field.dt2);
    103104else
    104105    Field.Txt='the input file is not civx';
     
    136137% rescale to pixel coordiantes
    137138if isfield(Field,'pixcmx')
     139Field.pixcmx=double(Field.pixcmx);
     140Field.pixcmy=double(Field.pixcmy);
    138141Field.U=Field.U*Field.pixcmx;
    139142Field.V=Field.V*Field.pixcmy;
Note: See TracChangeset for help on using the changeset viewer.