Ignore:
Timestamp:
Nov 21, 2010, 10:06:11 PM (13 years ago)
Author:
sommeria
Message:

series: give writting access to the group for all subdirectories produced
uvmat.fig: change of vect and scalar frames (to be consistent with view_field)
uvmat: various cleaning
plot_field: various cleaning to improve axes definition and avoid blinking
geometry_calib: improved dispay of point coordiantes, improved link with dataview for REPLICATE.
struct2nc: repair bug , file was not closed.
cell2tab: cleaning
dataview: improve the browser
civ: solve pb of image naming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_geometry_calib.m

    r71 r128  
    99    k=findstr('|',coord_str);%find separators '|'
    1010    if length(k)>=4 % test for separators '|'
    11         data1=str2num(coord_str(1:k(1)-5));
    12         data2=str2num(coord_str(k(1)+5:k(2)-5));
    13         data3=str2num(coord_str(k(2)+5:k(3)-5));
    14         data4=str2num(coord_str(k(3)+5:k(4)-5));
    15         data5=str2num(coord_str(k(4)+5:end));
    16         if ~isempty(data1)||~isempty(data2)||~isempty(data3)||~isempty(data4)||~isempty(data5)
     11        data1=str2double(coord_str(1:k(1)-2));
     12        data2=str2double(coord_str(k(1)+2:k(2)-2));
     13        data3=str2double(coord_str(k(2)+2:k(3)-2));
     14        data4=str2double(coord_str(k(3)+2:k(4)-2));
     15        data5=str2double(coord_str(k(4)+2:end));
     16        if ~isnan(data1)||~isnan(data2)||~isnan(data3)||~isnan(data4)||~isnan(data5)
    1717            iline=iline+1;
    18             if ~isempty(data1)
     18            if ~isnan(data1)
    1919                data.Coord(iline,1)=data1;
    2020            end   
    21             if ~isempty(data2)
     21            if ~isnan(data2)
    2222                data.Coord(iline,2)=data2;
    2323            end
    24             if ~isempty(data3)
     24            if ~isnan(data3)
    2525                data.Coord(iline,3)=data3;
    2626            end
    27             if ~isempty(data4)
     27            if ~isnan(data4)
    2828                data.Coord(iline,4)=data4;
    2929            end
    30             if isempty(data5)
     30            if isnan(data5)
    3131                data.Coord(iline,5)=0;
    3232            else
Note: See TracChangeset for help on using the changeset viewer.