Ignore:
Timestamp:
Jun 1, 2011, 11:19:00 AM (14 years ago)
Author:
sommeria
Message:

bug repaired for time_series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/time_series.m

    r228 r259  
    8484%determine image type
    8585hhh=which('mmreader');
     86testnetcdf=0;
    8687for iview=1:nbview
    8788    if isequal(FileExt{iview},'.nc')||isequal(FileExt{iview},'.cdf')
    8889        FileType{iview}='netcdf';
     90        testnetcdf=1;
    8991    elseif isequal(lower(FileExt{iview}),'.avi')
    9092        if ~isequal(hhh,'')&& mmreader.isPlatformSupported()
     
    121123else
    122124    FieldName={''};
     125end
     126if isequal(FieldName,{''}) && testnetcdf
     127    msgbox_uvmat('ERROR','A field must be defined as input')
     128    return
    123129end
    124130if isequal(FieldName,{'get_field...'})
     
    339345                end
    340346            end     
    341             if testcivx
     347            if testcivx && ~isequal(FieldName,{''})
    342348                    Data{iview}=calc_field(FieldName,Data{iview});%calculate field (vort..)
    343349            end
     
    481487   
    482488    %name of result file
     489%     RecordData
     490%     RecordData.VarDimName{1}
     491%     RecordData.VarDimName{2}
     492%     RecordData.VarDimName{3}
     493%     RecordData.VarDimName{4}
     494%     RecordData.VarDimName{5}
     495%     RecordData.VarDimName{6}
    483496    [filemean]=...
    484497               name_generator(filebase_out,num_i1{1}(i_slice),num_j1{1}(i_slice),'.nc','_i1-i2_j1-j2',1,num_i2{end}(ifile),num_j2{end}(ifile),subdir_result);
     
    487500        display([filemean ' written'])
    488501    else
    489         msgbox_uvmat('ERROR',['error in Series/struct2nc' errormsg])
     502        msgbox_uvmat('ERROR',['error in Series/struct2nc: ' errormsg])
    490503    end
    491504end
Note: See TracChangeset for help on using the changeset viewer.