Changeset 752 for trunk/src/uvmat.m
- Timestamp:
- Apr 27, 2014, 8:14:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r750 r752 3198 3198 set(handles.RootFile,'String',[get(handles.RootFile,'String') get(handles.FileIndex,'String')]) 3199 3199 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); 3200 3206 set(handles.FileIndex,'String','') 3201 3207 ParamIn.TimeVarName=GetFieldData.Time.TimeName; … … 3203 3209 set(handles.TimeName,'String',['dim:' GetFieldData.Time.TimeName]); 3204 3210 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')]) 3206 3212 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); 3207 3219 set(handles.FileIndex,'String','') 3208 3220 ParamIn.TimeDimName=GetFieldData.Time.TimeName; … … 3810 3822 CoordUnitPrev=UvData.Field.CoordUnit; 3811 3823 end 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 3824 if ~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 3815 3832 if isfield(DataOut,'CoordUnit')% set the requested coord unit (info used to possibly delete the current projection objects) 3816 3833 CoordUnit=DataOut.CoordUnit; … … 4592 4609 %------------------------------------------------------------------------ 4593 4610 hfig=figure; 4594 copyobj(handles.PlotAxes,hfig); 4611 hc=copyobj(handles.PlotAxes,hfig); 4612 set(hc,'Position',[0.1 0.1 0.8 0.8]) 4595 4613 h=findobj(handles.PlotAxes,'tag','ima'); %look for image in the plot 4596 4614 if ~isempty(h) 4597 4615 map=colormap(handles.PlotAxes); 4598 colormap(map);%transmit the current colormap to the zoomfig4616 colormap(map);%transmit the current colormap to the new fig 4599 4617 colorbar 4600 4618 end … … 5669 5687 set(handles.TableDisplay,'Visible','off') 5670 5688 end 5671 5672
Note: See TracChangeset
for help on using the changeset viewer.