Ignore:
Timestamp:
Dec 24, 2017, 9:50:18 AM (7 years ago)
Author:
sommeria
Message:

pb for reading images repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proj_field.m

    r1009 r1024  
    11131113
    11141114%% group the variables (fields of 'FieldData') in cells of variables with the same dimensions
     1115
    11151116[CellInfo,NbDimArray,errormsg]=find_field_cells(FieldData);
    11161117
     
    11191120    return
    11201121end
     1122
    11211123check_grid=zeros(size(CellInfo));% =1 if a grid is needed , =0 otherwise, for each field cell
    1122 
    11231124ProjMode=cell(size(CellInfo));
    11241125for icell=1:numel(CellInfo)
    11251126    ProjMode{icell}=ObjectData.ProjMode;% projection mode of the plane object
    11261127end
    1127     icell_grid=[];% field cell index which defines the grid
     1128icell_grid=[];% field cell index which defines the grid
    11281129if ~strcmp(ObjectData.ProjMode,'projection')&& ~strcmp(ObjectData.Type,'plane_z')% TODO:rationalize
    11291130    %% define the new coordinates in case of interpolation on a imposed grid
     
    11541155            check_grid(icell)=1;
    11551156        end
    1156         if strcmp(CellInfo{icell}.CoordType,'grid')&&NbDimArray(icell)>=2
     1157        if strcmp(CellInfo{icell}.CoordType,'grid') && NbDimArray(icell)>=2
    11571158            if ~testangle && isempty(icell_grid)% if the input gridded data is not modified, choose the first one in case of multiple gridded field cells
    11581159                icell_grid=icell;
Note: See TracChangeset for help on using the changeset viewer.