Ignore:
Timestamp:
Jan 21, 2021, 3:59:54 PM (3 years ago)
Author:
sommeria
Message:

system of mirror output path introduced, and series/sliding_average added

File:
1 edited

Legend:

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

    r1089 r1090  
    331331    end
    332332    if CheckInputFile
     333        OutputPath=fullfile(Param.OutputPath,Param.Experiment,Param.Device);
    333334        if iview_A==0 % no nc file has been entered
    334             ncfile=fullfile_uvmat(Param.InputTable{1,1},Param.InputTable{1,2},Param.InputTable{1,3},Param.InputTable{1,5},...
     335            ncfile=fullfile_uvmat(OutputPath,Param.InputTable{1,2},Param.InputTable{1,3},Param.InputTable{1,5},...
    335336                NomTypeNc,i1_series_Civ1(ifield),i2_series_Civ1(ifield),j1_series_Civ1(ifield),j2_series_Civ1(ifield));
    336337        else% an existing nc file has been entered
     
    341342            end
    342343            if strcmp(Param.ActionInput.ListCompareMode,'PIV')
    343                 ncfile=fullfile_uvmat(RootPath_A,Civ1Dir,RootFile_A,'.nc',NomTypeNc,i1_series_Civ1(ifield),i2_series_Civ1(ifield),...
     344                ncfile=fullfile_uvmat(OutputPath,Civ1Dir,RootFile_A,'.nc',NomTypeNc,i1_series_Civ1(ifield),i2_series_Civ1(ifield),...
    344345                    j1_series_Civ1(ifield),j2_series_Civ1(ifield));
    345346            else
    346                 ncfile=fullfile_uvmat(RootPath_A,Civ1Dir,RootFile_A,'.nc',NomTypeNc,i2_series_Civ1(ifield),[],...
     347                ncfile=fullfile_uvmat(OutputPath,Civ1Dir,RootFile_A,'.nc',NomTypeNc,i2_series_Civ1(ifield),[],...
    347348                    j1_series_Civ1(ifield),j2_series_Civ1(ifield));
    348349            end
    349350        end
    350351        ncfile_out=ncfile;% by default
     352       
    351353        if isfield (Param.ActionInput,'Civ2')
    352354            i1_civ2=i1_series_Civ2(ifield);
     
    409411                        end
    410412                    end
    411                     if ~exist(ImageName_A,'file')
     413                    if isempty(regexp(ImageName_A,'(^http://)|(^https://)')) && ~exist(ImageName_A,'file')
    412414                        disp([ImageName_A ' missing'])
    413415                        continue
     
    425427                        FileType_B=FileInfo_B.FileType;
    426428                    end
    427                     if ~exist(ImageName_B,'file')
     429                    if isempty(regexp(ImageName_B,'(^http://)|(^https://)')) && ~exist(ImageName_B,'file')
    428430                        disp([ImageName_B ' missing'])
    429431                        continue
     
    492494                par_civ1.Mask=mask; %use mask already opened
    493495            else
    494                 if exist(maskname,'file')
     496                if ~isempty(regexp(maskname,'(^http://)|(^https://)'))|| exist(maskname,'file')
    495497                    try
    496498                        par_civ1.Mask=imread(maskname);%update the mask, an store it for future use
Note: See TracChangeset for help on using the changeset viewer.