- Timestamp:
- Apr 26, 2010, 11:26:09 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r85 r86 2458 2458 end 2459 2459 else 2460 patch1.gridPatch='n ';2460 patch1.gridPatch='none'; 2461 2461 patch1.gridflag='n'; 2462 2462 patch1.m=nx_patch1; … … 2630 2630 end 2631 2631 else 2632 patch2.gridPatch='n ';2632 patch2.gridPatch='none'; 2633 2633 patch2.gridflag='n'; 2634 2634 patch2.m=nx_patch2; -
trunk/src/sub_field.m
r19 r86 228 228 XName_1=Field_1.ListVarName{VarType_1.coord_x}; 229 229 YName_1=Field_1.ListVarName{VarType_1.coord_y}; 230 SubData.ListVarName=[SubData.ListVarName {XName_1} {YName_1}];230 %SubData.ListVarName=[SubData.ListVarName {XName_1} {YName_1}]; 231 231 DimCell=Field_1.VarDimName([VarType_1.coord_x VarType_1.coord_y ]); 232 232 if isfield(Field_1,'VarAttribute') -
trunk/src/uvmat.m
r85 r86 2300 2300 set(hhget_field.attributes,'String',Tabchar);%update list of global attributes in get_field 2301 2301 else 2302 [Field{2},VelType_out_1]=read_civxdata(filename_1, [],VelType_1);2302 [Field{2},VelType_out_1]=read_civxdata(filename_1,InputField_1,VelType_1); 2303 2303 CivStage_1=Field{2}.CivStage; 2304 2304 end … … 3065 3065 function [FileName_1,RootPath_1,FileBase_1,FileIndices_1,FileExt_1,SubDir_1]=read_file_boxes_1(handles) 3066 3066 %------------------------------------------------------------------------ 3067 RootPath_1=get(handles.RootPath_1,'String') % read the data from the file1_input window3067 RootPath_1=get(handles.RootPath_1,'String'); % read the data from the file1_input window 3068 3068 if isequal(get(handles.RootPath_1,'Visible'),'off') || isequal(RootPath_1,'"') 3069 3069 RootPath_1=get(handles.RootPath,'String'); … … 3143 3143 NomTypeNew='_i'; 3144 3144 end 3145 imagename=name_generator(FileBase,str2double(str1),str2double(str_a),'.png',NomTypeNew,1,str2double(str2),str2double(str_b),'') 3145 imagename=name_generator(FileBase,str2double(str1),str2double(str_a),'.png',NomTypeNew,1,str2double(str2),str2double(str_b),''); 3146 3146 if ~exist(imagename,'file') 3147 3147 [FileName,PathName] = uigetfile( ... … … 3153 3153 '*.vol','.volume images (png)'; ... 3154 3154 '*.*', 'All Files (*.*)'}, ... 3155 'Pick an image',imagename) 3155 'Pick an image',imagename); 3156 3156 % display the selected field and related information 3157 3157 imagename=[PathName FileName]; … … 3169 3169 '*.nc',' netcdf files'; ... 3170 3170 '*.*', 'All Files (*.*)'}, ... 3171 'Pick a netcdf file',FileBase) 3171 'Pick a netcdf file',FileBase); 3172 3172 % display the selected field and related information 3173 3173 filename=[PathName FileName]; … … 3302 3302 '*.vol','.volume images (png)'; ... 3303 3303 '*.*', 'All Files (*.*)'}, ... 3304 'Pick an image',imagename) 3304 'Pick an image',imagename); 3305 3305 % display the selected field and related information 3306 3306 imagename=[PathName FileName]; … … 3355 3355 [Path,Name]=fileparts(filebase_1); 3356 3356 set(handles.FileExt_1,'String','.nc'); 3357 if ~isempty(SubDir_1) & ~isequal(SubDir_1,'''')& ~isequal(SubDir_1,'"')3357 if ~isempty(SubDir_1) && ~strcmp(SubDir_1,'''')&& ~strcmp(SubDir_1,'"')&& ~strcmp(SubDir_1(1),'/') 3358 3358 SubDir_1=['/' SubDir_1]; 3359 3359 end … … 4751 4751 colormap(map) 4752 4752 image(imflag); 4753 answer=msgbox_uvmat('INPUT_TXT','mask file name:', mask_name) 4753 answer=msgbox_uvmat('INPUT_TXT','mask file name:', mask_name); 4754 4754 if ~strcmp(answer,'Cancel') 4755 4755 imwrite(imflag,answer,'BitDepth',8);
Note: See TracChangeset
for help on using the changeset viewer.