Changeset 120


Ignore:
Timestamp:
Nov 9, 2010, 5:27:00 PM (13 years ago)
Author:
gostiaux
Message:

gedit

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r119 r120  
    657657    first_i=max(field_i,1);
    658658   
    659     if strcmp(nom_type_ima,'_i_j')
     659     switch nom_type_ima
     660        case {'_i_j','%01dA','%02dA','%03dA','%04dA'}
    660661        field_i=field_count;
    661662        field_j=1;
     
    671672        end
    672673        nb_field_j=field_j-1;% last detected field number
    673     end
     674     end
     675
    674676   
    675677   
     
    677679    %   dt=(1/1000)*str2num(get(handles.dt,'String'));
    678680    time=(0:nb_field-1)';% time=file index -1  by default
    679     if strcmp(nom_type_ima,'_i_j')
     681
     682    switch nom_type_ima
     683        case {'_i_j','%01dA','%02dA','%03dA','%04dA'}
    680684        % time=[0:nb_field-1]'*ones(1,nb_field_j);% time=file index -1  by default
    681         time=[0:nb_field-1]'*[0:nb_field_j-1];% time=file index -1  by default
     685        [x,y]=meshgrid([0:2-1],[0:152-1]);
     686        time=x+y;
     687%         time=[0:nb_field-1]'*[0:nb_field_j-1];% time=file index -1  by default
    682688    end
    683689   
     
    691697%   last_j=1;
    692698% end
     699
    693700if exist('time','var')
    694701    if size(time,1)+size(time,2)>=3 % if there are at least two time values to define dt
     
    27322739            %% to lauch the jobs locally :
    27332740            if(isunix)
    2734                 eval(['!. ' filename_bat ' &']);
    2735                 display(['!. ' filename_bat ' &'])
     2741                cmd_str=['!at -qb now -f ' filename_bat ' &']; %ou at -qb now -f
     2742                eval(cmd_str);
     2743                display(cmd_str);
    27362744            else
    2737                 eval(['!' filename_bat ' &']);
    2738                 display(['!' filename_bat ' &'])
     2745                cmd_str=['!' filename_bat ' &'];
     2746                eval(cmd_str);
     2747                display(cmd_str);
    27392748            end
    27402749        end
     
    48914900fclose(fid);
    48924901
    4893 cmd_CIV1=[sparam.Civ1Bin ' -f ' filename '.cmx' ]; % redirect standard output to the log file
     4902cmd_CIV1=[sparam.Civ1Bin ' -f ' filename '.cmx >' filename '.log' ]; % redirect standard output to the log file
    48944903cmd_CIV1=regexprep(cmd_CIV1,'\\','\\\\');
    48954904namelog=regexprep(namelog,'\\','\\\\');
  • trunk/src/name2display.m

    r19 r120  
    9696    str_a=last_str; %put appendix a,b,c....
    9797    indcur=indcur-1;
    98     nom_type='#A';   
    9998    num=1;count=0; % extract the numerical appendix
    10099    while num==1;
     
    106105        end
    107106    end
     107    if strcmp('0',RootFile(indcur+1)); % select the non-numerical characters
     108        nom_type=['%0' num2str(length(RootFile(indcur+1:end-1))) 'dA'];
     109    else
     110        nom_type='#A';
     111    end 
     112   
    108113    if count~=0             
    109114            field_count=RootFile(indcur+1:indcur+count);% set the selected field number
    110115    end   
    111     indcur=indcur-1;
     116%     indcur=indcur-1;
    112117elseif strcmp(filelit(end-2:end),'-_-_')%new  nomenclature appendix num1-num2_num_a-num_b
    113118    field_count=num0;
  • trunk/src/name_generator.m

    r89 r120  
    112112elseif length(nom_type)>=4 & strcmp(nom_type(1:2),'%0') & strcmp(nom_type(end),'d')
    113113        filename=[filebase num2str(num_i1,nom_type) ext]; %test number with a 0 before
     114        num_i2_out=num_i1;
     115        num_j1_out=[];
     116        num_j2_out=[];
     117elseif length(nom_type)>=4 & strcmp(nom_type(1:2),'%0') & strcmp(nom_type(end-1:end),'dA')
     118        filename=[filebase num2str(num_i1,nom_type(1:end-1)) num2stra(num_j1,'#A') ext]; %test number with a 0 before
    114119        num_i2_out=num_i1;
    115120        num_j1_out=[];
  • trunk/src/uvmat.m

    r116 r120  
    912912scan_option='i';%default
    913913switch NomType
    914     case {'_i_j','_i_j1-j2','_i1-i2_j','#_ab'},% two navigation indices
     914    case {'_i_j','_i_j1-j2','_i1-i2_j','#_ab','#A','%01dA','%02dA','%03dA','%04dA'},% two navigation indices
    915915        state_j='on';
    916916        if isequal(nbfield,1)
     
    17231723function errormsg=runpm(hObject,eventdata,handles,increment)
    17241724%------------------------------------------------------------------
    1725 %check for mùovie pair status
     1725%check for mï¿œovie pair status
    17261726movie_status=get(handles.movie_pair,'Value');
    17271727if isequal(movie_status,1)
Note: See TracChangeset for help on using the changeset viewer.