Changeset 1023 for trunk/src/uvmat.m
- Timestamp:
- Dec 12, 2017, 7:18:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r1022 r1023 3553 3553 UvData.NewSeries=1; 3554 3554 end 3555 %put W as background image by default if NbDim=2:3556 % if UvData.NewSeries && isequal(get(handles.SubField,'Value'),0) && isfield(Field{1},'W') && ~isempty(Field{1}.W) && ~isequal(Field{1}.NbDim,3);3557 % set(handles.SubField,'Value',1);3558 % set(handles.RootPath_1,'String','"')3559 % set(handles.RootFile_1,'String','"')3560 % set(handles.SubDir_1,'String','"');3561 % indices=fullfile_uvmat('','','','',NomType,num_i1,num_i2,num_j1,num_j2);3562 % set(handles.FileIndex_1,'String',indices)3563 % set(handles.FileExt_1,'String','"');3564 % set(handles.FieldName_1,'Visible','on');3565 % set(handles.FieldName_1,'Visible','on');3566 % set(handles.RootPath_1,'Visible','on')3567 % set(handles.RootFile_1,'Visible','on')3568 % set(handles.SubDir_1,'Visible','on');3569 % set(handles.FileIndex_1,'Visible','on');3570 % set(handles.FileExt_1,'Visible','on');3571 % set(handles.FieldName_1,'Visible','on');3572 % Field{1}.AName='w';3573 % end3574 3555 3575 3556 %% display time value of the current file … … 3729 3710 end 3730 3711 3731 %% get bounds and dimensions of the input field3732 UvData.Field=find_field_bounds(UvData.Field);3733 3712 testnewseries=UvData.NewSeries; 3734 3713 UvData.NewSeries=0;% put to 0 the test for a new field series (set by RootPath_callback) 3735 3714 3736 3715 3737 %% calculate tps coefficients if needed 3738 UvData.Field=tps_coeff_field(UvData.Field,check_proj_tps); 3739 3740 %% reset the min and max of scalar if only the mask is displayed(TODO: check the need) 3741 % if isfield(UvData,'Mask')&& ~isfield(UvData,'A') 3742 % set(handles.num_MinA,'String','0') 3743 % set(handles.num_MaxA,'String','255') 3744 % end 3745 3746 %% usual 1D (x,y) plots 3747 if UvData.Field.NbDim<=1 3716 %% usual (x,y) plot 3717 if strcmp(FieldName,'') 3748 3718 set(handles.Objects,'Visible','off') 3749 3719 set(handles.CheckFixAspectRatio,'Value',0) 3720 coord_x_name=get(handles.Coord_x,'String'); 3721 check_x_name=find(strcmp(coord_x_name,UvData.Field.ListVarName)); 3722 UvData.Field.VarAttribute{check_x_name}.Role='coord_x'; 3750 3723 [PlotType,PlotParamOut,haxes]=plot_field(UvData.Field,handles.PlotAxes,read_GUI(handles.uvmat)); 3751 3724 UvData.PlotAxes=UvData.Field; %store data for further plot modifications … … 3764 3737 end 3765 3738 cla(handles.HistoAxes)% clear the curves and legend in histogram axes 3739 UvData.Field.NbDim=1; 3766 3740 set(handles.uvmat,'UserData',UvData) 3741 3767 3742 %% 2D or 3D fieldname are generally projected 3768 3743 else 3744 UvData.Field=find_field_bounds(UvData.Field); 3745 3746 %% get bounds and dimensions of the input field 3747 3748 %% calculate tps coefficients if needed 3749 UvData.Field=tps_coeff_field(UvData.Field,check_proj_tps); 3750 3751 %% reset the min and max of scalar if only the mask is displayed(TODO: check the need) 3752 % if isfield(UvData,'Mask')&& ~isfield(UvData,'A') 3753 % set(handles.num_MinA,'String','0') 3754 % set(handles.num_MaxA,'String','255') 3755 % end 3769 3756 set(handles.Objects,'Visible','on') 3770 3757 … … 4454 4441 case '1D plot' 4455 4442 YName=GetFieldData.PanelOrdinate.ordinate; 4443 FieldList={''}; 4456 4444 case 'civdata...'%reinitiate input, return to automatic civ data reading 4457 4445 display_file_name(handles,FileName,1)
Note: See TracChangeset
for help on using the changeset viewer.