Changeset 919 for trunk/src/series.m


Ignore:
Timestamp:
Jun 26, 2015, 5:14:45 PM (9 years ago)
Author:
sommeria
Message:

netcdf files stored in 32 bits (not double)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r918 r919  
    17641764
    17651765
    1766 %% direct processing on the current Matlab session
    1767 % if strcmp (RunMode,'local')
     1766%% direct processing on the current Matlab session or creation of command files
     1767filexml=cell(1,NbProcess);% initialisation of the names of the files containing the processing parameters
     1768extxml=cell(1,NbProcess); % initialisation of the set of labels used for the files documenting each process
    17681769for iprocess=1:NbProcess
    17691770    if ~strcmp(get(handles.RUN,'BusyAction'),'queue')% allow for STOP action
     
    17731774    if isempty(Param.IndexRange.NbSlice)
    17741775        Param.IndexRange.first_i=first_i+(iprocess-1)*BlockLength*incr_i;
    1775 %         Param.IndexRange.first_i=ref_i(1+(iprocess-1)*BlockLength);
     1776        %         Param.IndexRange.first_i=ref_i(1+(iprocess-1)*BlockLength);
    17761777        if Param.IndexRange.first_i>last_i
    17771778            NbProcess=iprocess-1;% leave the loop, we are at the end of the calculation
     
    17821783        Param.IndexRange.last_i=min(last_i,first_i+(iprocess)*BlockLength*incr_i-1);
    17831784    else %multislices (then incr_i is not empty)
    1784 %         Param.IndexRange.first_i= first_i+incr_i*(iprocess-1);
    1785 %         Param.IndexRange.incr_i=incr_i*Param.IndexRange.NbSlice;
     1785        %         Param.IndexRange.first_i= first_i+incr_i*(iprocess-1);
     1786        %         Param.IndexRange.incr_i=incr_i*Param.IndexRange.NbSlice;
    17861787        Param.IndexRange.first_i= first_i+iprocess-1;
    17871788        Param.IndexRange.incr_i=incr_i*Param.IndexRange.NbSlice;
     
    18091810        extxml{iprocess}=fullfile_uvmat('','',Param.InputTable{1,3},'.xml',OutputNomType,...
    18101811            Param.IndexRange.first_i,Param.IndexRange.last_i,first_j,last_j);
    1811         filexml{iprocess}=fullfile(OutputDir,'0_XML',extxml{iprocess})
    1812         save(t, filexml{iprocess});% save the xml file containing the processing parameters
     1812        filexml{iprocess}=fullfile(OutputDir,'0_XML',extxml{iprocess});
     1813        try
     1814            save(t, filexml{iprocess});% save the xml file containing the processing parameters
     1815        catch ME
     1816            if ~strcmp (RunMode,'local')
     1817                errormsg=['error writting ' filexml{iprocess} ': ' ME.message];
     1818                return
     1819            end
     1820        end
    18131821    end
    18141822    if strcmp (RunMode,'local')
     
    18271835    end
    18281836end
     1837
    18291838if ~strcmp (RunMode,'local') && ~strcmp(RunMode,'python')
    18301839    %% processing on a different session of the same computer (background) or cluster, create executable files
Note: See TracChangeset for help on using the changeset viewer.