Changeset 752 for trunk/src/uvmat.m


Ignore:
Timestamp:
Apr 27, 2014, 8:14:51 PM (10 years ago)
Author:
sommeria
Message:

various update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r750 r752  
    31983198                    set(handles.RootFile,'String',[get(handles.RootFile,'String') get(handles.FileIndex,'String')])
    31993199                    set(handles.i1,'String','1')% set counter to 1 (now the time index in the input matrix)
     3200                    MaxIndex_i=get(handles.MaxIndex_i,'String');
     3201                    MaxIndex_i{1}=num2str(GetFieldData.Time.TimeDimension);
     3202                    set(handles.MaxIndex_i,'String',MaxIndex_i)%TODO: record time unit
     3203                    UvData=get(handles.uvmat,'UserData');
     3204                    UvData.TimeUnit=GetFieldData.Time.TimeUnit;
     3205                    set(handles.uvmat,'UserData',UvData);
    32003206                    set(handles.FileIndex,'String','')
    32013207                    ParamIn.TimeVarName=GetFieldData.Time.TimeName;
     
    32033209                    set(handles.TimeName,'String',['dim:' GetFieldData.Time.TimeName]);
    32043210                    set(handles.NomType,'String','*')
    3205                     set(handles.RootFile,'String',[get(handles.RootFile,'String') get(handles.FileIndex,'String')])
     3211                    set(handles.RootFile,'String',[get(handles.RootFile,'String') get(handles.FileIndex,'String')])             
    32063212                    set(handles.i1,'String','1')% set counter to 1 (now the time index in the input matrix)
     3213                    MaxIndex_i=get(handles.MaxIndex_i,'String');
     3214                    MaxIndex_i{1}=num2str(GetFieldData.Time.TimeDimension);
     3215                    set(handles.MaxIndex_i,'String',MaxIndex_i)%TODO: record time unit
     3216                    UvData=get(handles.uvmat,'UserData');
     3217                    UvData.TimeUnit=GetFieldData.Time.TimeUnit;
     3218                    set(handles.uvmat,'UserData',UvData);
    32073219                    set(handles.FileIndex,'String','')
    32083220                    ParamIn.TimeDimName=GetFieldData.Time.TimeName;
     
    38103822    CoordUnitPrev=UvData.Field.CoordUnit;
    38113823end
    3812 if ~isempty(list_path{ichoice})
    3813     if nargin(transform_handle)>1 && isfield(UvData,'XmlData')&&~isempty(UvData.XmlData)
    3814         DataOut=feval(transform_handle,'*',UvData.XmlData{1});% execute the transform fct to get the required conditions
     3824if ~isempty(list_path{ichoice})
     3825    if nargin(transform_handle)>1 %&& isfield(UvData,'XmlData')&&~isempty(UvData.XmlData)
     3826        XmlData=[];
     3827        if isfield(UvData,'XmlData')&&~isempty(UvData.XmlData)
     3828            XmlData=UvData.XmlData{1};
     3829        end
     3830        UvData.Field.Action.RUN=0;% indicate that the transform fct is called only to get input param
     3831        DataOut=feval(transform_handle,UvData.Field,XmlData);% execute the transform fct to get the required conditions
    38153832        if isfield(DataOut,'CoordUnit')% set the requested coord unit (info used to possibly delete the current projection objects)
    38163833            CoordUnit=DataOut.CoordUnit;
     
    45924609%------------------------------------------------------------------------
    45934610hfig=figure;
    4594 copyobj(handles.PlotAxes,hfig);
     4611hc=copyobj(handles.PlotAxes,hfig);
     4612set(hc,'Position',[0.1 0.1 0.8 0.8])
    45954613h=findobj(handles.PlotAxes,'tag','ima'); %look for image in the plot
    45964614if ~isempty(h)
    45974615    map=colormap(handles.PlotAxes);
    4598     colormap(map);%transmit the current colormap to the zoom fig
     4616    colormap(map);%transmit the current colormap to the new fig
    45994617    colorbar
    46004618end
     
    56695687    set(handles.TableDisplay,'Visible','off')
    56705688end
    5671 
    5672 
Note: See TracChangeset for help on using the changeset viewer.